﻿/*
该脚本由银翼团队 黑暗精灵 编写
ScriptDevCN
*/
#include "../sc_defines.h"
#include "../../../../game/Player.h"
#include "../../../../game/GossipDef.h"
//#include "../../../../game/scriptcalls.h"
#include "../../../../game/GameObject.h"
#include "../../../../game/QuestDef.h"
#include "../../scriptmgr.h"
bool GossipHello_Item(Player *player, Item *_Item, SpellCastTargets const& targets)
{    
  if(!player->isInCombat())
   {
   if (!player->isDead())
     { 
         player->ADD_GOSSIP_ITEM( 3, " 【内陆】--主城副本传送   ", 1, GOSSIP_ACTION_INFO_DEF + 2);
         player->ADD_GOSSIP_ITEM( 3, " 【外域】--外域各地传送   ", 1, GOSSIP_ACTION_INFO_DEF + 3); 
         player->ADD_GOSSIP_ITEM( 3, " 【战场】--四大战场传送   ", 1, GOSSIP_ACTION_INFO_DEF + 4);
         player->ADD_GOSSIP_ITEM( 3, " 【功能】--各种实用功能   ", 1, GOSSIP_ACTION_INFO_DEF + 5);

	 }
    else if (player->isDead())
    {
         player->ADD_GOSSIP_ITEM( 2, " 【自助】灵魂医者复活  ", 1, GOSSIP_ACTION_INFO_DEF + 6); //灵魂医者复活
	     player->SEND_GOSSIP_MENU(100000001,_Item->GetGUID());
    }
  player->SEND_GOSSIP_MENU(100000000,_Item->GetGUID());
  }
  else if (player->isInFlight())
  {
      player->GetSession()->SendAreaTriggerMessage("银风齿轮无法在飞行中使用，请到达目的再使用");
  }
  else if (player->IsMounted())
  {
      player->GetSession()->SendAreaTriggerMessage("银风齿轮无法在坐骑中使用，请先下坐骑再使用");
  }
  else 
  {
      player->GetSession()->SendAreaTriggerMessage("银风齿轮无法在战斗中使用，请停止战斗再使用");
  }
    return true;
}

void SendDefaultMenu_Item(Player *player, Item *_Item, uint32 action , SpellCastTargets const& targets)
{
	int icount = 0;
   if(!player->isInCombat())
      {
        switch(action) {
			case GOSSIP_ACTION_INFO_DEF + 1 :
                    player->CLOSE_GOSSIP_MENU();
			        break;
			case GOSSIP_ACTION_INFO_DEF + 2 :
                  if(player->getRace() == 1 || player->getRace() == 3 || player->getRace() == 4 || player->getRace() == 7 || player->getRace() == 11) //判断是否联盟
					{ 
						player->ADD_GOSSIP_ITEM( 2, " 【一金】联盟主城传送   ", 1, GOSSIP_ACTION_INFO_DEF + 7); //联盟主城传送
					}
					else//部落
					{
						player->ADD_GOSSIP_ITEM( 2, " 【一金】部落主城传送   ", 1, GOSSIP_ACTION_INFO_DEF + 8); //部落主城传送
					}
					    player->ADD_GOSSIP_ITEM( 2, " 【免费】传送到出生地  " , 1, GOSSIP_ACTION_INFO_DEF + 16);	//传送到出生地
						player->ADD_GOSSIP_ITEM( 2, " 【一金】中立城市传送   ", 1, GOSSIP_ACTION_INFO_DEF + 9);  //中立城市传送
						player->ADD_GOSSIP_ITEM( 2, " 【三金】初级副本传送   ", 1, GOSSIP_ACTION_INFO_DEF + 10);  //初级副本传送
						player->ADD_GOSSIP_ITEM( 2, " 【五金】中级副本传送   ", 1, GOSSIP_ACTION_INFO_DEF + 11);  //中级副本传送
						player->ADD_GOSSIP_ITEM( 2, " 【十金】团队副本传送   ", 1, GOSSIP_ACTION_INFO_DEF + 12);  //团队副本传送
						player->ADD_GOSSIP_ITEM( 2, " 【十金】野外BOSS传送   ", 1, GOSSIP_ACTION_INFO_DEF + 13);	 //野外BOSS传送 
						player->ADD_GOSSIP_ITEM( 2, " 【五金】世界风景传送   ", 1, GOSSIP_ACTION_INFO_DEF + 14);	 //世界风景传送
						player->ADD_GOSSIP_ITEM( 7, "  返回主选单  ", 1, GOSSIP_ACTION_INFO_DEF + 15);
						player->SEND_GOSSIP_MENU(100000002,_Item->GetGUID());
					break;
			case GOSSIP_ACTION_INFO_DEF + 3 :
				if(player->getLevel() >=58)
				{
					player->ADD_GOSSIP_ITEM( 2, " 【五金】外域地区传送  " , 1, GOSSIP_ACTION_INFO_DEF + 17);	//外域风景传送
					player->ADD_GOSSIP_ITEM( 2, " 【十金】五人副本传送  " , 1, GOSSIP_ACTION_INFO_DEF + 18);	//外域五人副本
					player->ADD_GOSSIP_ITEM( 2, " 【十金】团队副本传送  " , 1, GOSSIP_ACTION_INFO_DEF + 19);	//外域团队副本
					player->ADD_GOSSIP_ITEM( 7, "  返回主选单 " , 1, GOSSIP_ACTION_INFO_DEF + 20);	//返回
					player->SEND_GOSSIP_MENU(100000003,_Item->GetGUID());
					break;
				}
				else
				{
				player->ADD_GOSSIP_ITEM(7,"  您的等级不够58级无法传送到外域!返回主选单",1,GOSSIP_ACTION_INFO_DEF +20);
				}

			case GOSSIP_ACTION_INFO_DEF + 4 :
					player->ADD_GOSSIP_ITEM( 0, " 战歌峡谷  " , 2, GOSSIP_ACTION_INFO_DEF + 1);
					player->ADD_GOSSIP_ITEM( 0, " 阿拉希盆地  " , 2, GOSSIP_ACTION_INFO_DEF + 2);
					player->ADD_GOSSIP_ITEM( 0, " 奥特兰克山谷 " , 2, GOSSIP_ACTION_INFO_DEF + 3);
					player->ADD_GOSSIP_ITEM( 0, " 古拉巴什竞技场  " , 2, GOSSIP_ACTION_INFO_DEF + 4);
					player->ADD_GOSSIP_ITEM( 7, " 返回主选单 " , 2, GOSSIP_ACTION_INFO_DEF + 5);
					player->SEND_GOSSIP_MENU(100000004,_Item->GetGUID());
					break;

			case GOSSIP_ACTION_INFO_DEF + 5 :
					player->ADD_GOSSIP_ITEM( 2, " 【50金】飞行点全开通   ", 1, GOSSIP_ACTION_INFO_DEF + 21);  //飞行点全开通
					player->ADD_GOSSIP_ITEM( 6, " 【免费】我的个人银行   ", 1, GOSSIP_ACTION_INFO_DEF + 22);  //魔兽银行
					player->ADD_GOSSIP_ITEM( 7, "  返回主选单 " , 1, GOSSIP_ACTION_INFO_DEF + 28);
					player->SEND_GOSSIP_MENU(100000005,_Item->GetGUID());
					break;
			 case GOSSIP_ACTION_INFO_DEF + 6://灵魂医者复活
                    player-> GetSession()->SendSpiritResurrect();
                    player->CLOSE_GOSSIP_MENU();
					break;
              case GOSSIP_ACTION_INFO_DEF + 7 :
		           player->ADD_GOSSIP_ITEM( 0, "【联盟】  暴风城   ", 3, GOSSIP_ACTION_INFO_DEF + 1); //传送到暴风城
                   player->ADD_GOSSIP_ITEM( 0, "【联盟】  铁炉堡   ", 3, GOSSIP_ACTION_INFO_DEF + 2); //传送到铁炉堡
                   player->ADD_GOSSIP_ITEM( 0, "【联盟】  达纳苏斯 ", 3, GOSSIP_ACTION_INFO_DEF + 3); //传送到达纳苏斯
                   player->ADD_GOSSIP_ITEM( 0, "【联盟】  秘蓝岛 "	, 3, GOSSIP_ACTION_INFO_DEF + 4); //传送到艾克索达
				   player->ADD_GOSSIP_ITEM( 7, " 返回主选单 "                 , 3, GOSSIP_ACTION_INFO_DEF + 5);
		           player->SEND_GOSSIP_MENU(100000006,_Item->GetGUID());
		           break;
              case GOSSIP_ACTION_INFO_DEF + 8 : 
                   player->ADD_GOSSIP_ITEM( 0, "【部落】  奥格瑞玛  ", 4, GOSSIP_ACTION_INFO_DEF + 1); //传送到奥格瑞玛 
                   player->ADD_GOSSIP_ITEM( 0, "【部落】  雷霆崖    ", 4, GOSSIP_ACTION_INFO_DEF + 2); //传送到雷霆崖
                   player->ADD_GOSSIP_ITEM( 0, "【部落】  幽暗城    ", 4, GOSSIP_ACTION_INFO_DEF + 3); //传送到幽暗城
                   player->ADD_GOSSIP_ITEM( 0, "【部落】  银月城    ", 4, GOSSIP_ACTION_INFO_DEF + 4); //传送到银月城
				   player->ADD_GOSSIP_ITEM( 7, " 返回主选单 "                 , 4, GOSSIP_ACTION_INFO_DEF + 5);
		           player->SEND_GOSSIP_MENU(100000007,_Item->GetGUID());
		           break;
              case GOSSIP_ACTION_INFO_DEF + 9 :
                   player->ADD_GOSSIP_ITEM( 0, "【中立】  棘齿城    ", 5, GOSSIP_ACTION_INFO_DEF + 1); //传送到棘齿城
                   player->ADD_GOSSIP_ITEM( 0, "【中立】  藏宝海湾  ", 5, GOSSIP_ACTION_INFO_DEF + 2); //传送到藏宝海湾
                   player->ADD_GOSSIP_ITEM( 0, "【中立】  加基森    ", 5, GOSSIP_ACTION_INFO_DEF + 3); //传送到加基森  
		           player->ADD_GOSSIP_ITEM( 0, "【中立】  冬泉谷    " ,5, GOSSIP_ACTION_INFO_DEF + 4); //传送到冬泉谷
				   player->ADD_GOSSIP_ITEM( 0, "【中立】  塞纳里奥要塞 ", 5, GOSSIP_ACTION_INFO_DEF + 6);
				   player->ADD_GOSSIP_ITEM( 7, " 返回主选单", 5, GOSSIP_ACTION_INFO_DEF + 5);
                   player->SEND_GOSSIP_MENU(100000008,_Item->GetGUID());
                   break;
              case GOSSIP_ACTION_INFO_DEF + 10 :
                   player->ADD_GOSSIP_ITEM( 0, "[14] 传送到怒焰裂谷   " , 6, GOSSIP_ACTION_INFO_DEF + 1);  //怒焰裂谷
                   player->ADD_GOSSIP_ITEM( 0, "[19] 传送到死亡矿井   " , 6, GOSSIP_ACTION_INFO_DEF + 2);  //死亡矿井
                   player->ADD_GOSSIP_ITEM( 0, "[22] 传送到哀嚎洞穴   " , 6, GOSSIP_ACTION_INFO_DEF + 3);  //哀嚎洞穴
                   player->ADD_GOSSIP_ITEM( 0, "[24] 传送到影牙城堡   " , 6, GOSSIP_ACTION_INFO_DEF + 4);  //影牙城堡
                   player->ADD_GOSSIP_ITEM( 0, "[26] 传送到黑暗深渊   " , 6, GOSSIP_ACTION_INFO_DEF + 5);  //黑暗深渊
                   player->ADD_GOSSIP_ITEM( 0, "[27] 传送到暴风城监狱 " , 6, GOSSIP_ACTION_INFO_DEF + 6);  //暴风城监狱
                   player->ADD_GOSSIP_ITEM( 0, "[31] 传送到剃刀沼泽   " , 6, GOSSIP_ACTION_INFO_DEF + 7);  //剃刀沼泽
                   player->ADD_GOSSIP_ITEM( 0, "[33] 传送到诺莫瑞根   " , 6, GOSSIP_ACTION_INFO_DEF + 8);  //诺莫瑞根
                   player->ADD_GOSSIP_ITEM( 0, "[40] 传送到血色修道院 " , 6, GOSSIP_ACTION_INFO_DEF + 9);  //血色修道院
                   player->ADD_GOSSIP_ITEM( 0, "[42] 传送到剃刀高地   " , 6, GOSSIP_ACTION_INFO_DEF + 10); //剃刀高地
                   player->ADD_GOSSIP_ITEM( 0, "[45] 传送到到奥达曼   " , 6, GOSSIP_ACTION_INFO_DEF + 11); //到奥达曼
				   player->ADD_GOSSIP_ITEM( 7, " 返回主选单 " , 6, GOSSIP_ACTION_INFO_DEF + 12);
                   player->SEND_GOSSIP_MENU(100000009,_Item->GetGUID());
                   break;
               case GOSSIP_ACTION_INFO_DEF + 11 :
                   player->ADD_GOSSIP_ITEM( 0, "[46] 传送到祖尔法拉克      "   , 7, GOSSIP_ACTION_INFO_DEF + 1);  //祖尔法拉克
                   player->ADD_GOSSIP_ITEM( 0, "[49] 传送到到玛拉顿        "   , 7, GOSSIP_ACTION_INFO_DEF + 2);  //到玛拉顿
                   player->ADD_GOSSIP_ITEM( 0, "[53] 传送到失落的神庙      "   , 7, GOSSIP_ACTION_INFO_DEF + 3);  //到失落的神庙
                   player->ADD_GOSSIP_ITEM( 0, "[57] 传送到黑石深渊        "   , 7, GOSSIP_ACTION_INFO_DEF + 4);  //黑石深渊
                   player->ADD_GOSSIP_ITEM( 0, "[60] 传送到通灵学院        "   , 7, GOSSIP_ACTION_INFO_DEF + 5);  //通灵学院
                   player->ADD_GOSSIP_ITEM( 0, "[60] 传送到厄运之槌 (北区) "   , 7, GOSSIP_ACTION_INFO_DEF + 6);  //厄运之槌 (北区)
	               player->ADD_GOSSIP_ITEM( 0, "[60] 传送到厄运之槌 (东区) "   , 7, GOSSIP_ACTION_INFO_DEF + 7);  //厄运之槌 (东区)
                   player->ADD_GOSSIP_ITEM( 0, "[60] 传送到厄运之槌 (西区) "   , 7, GOSSIP_ACTION_INFO_DEF + 8);  //厄运之槌 (西区)
                   player->ADD_GOSSIP_ITEM( 0, "[60] 传送到斯坦索姆        "   , 7, GOSSIP_ACTION_INFO_DEF + 9);  //斯坦索姆
		           player->ADD_GOSSIP_ITEM( 0, "[60] 传送到黑石塔          "   , 7, GOSSIP_ACTION_INFO_DEF + 10); //黑石塔
				   player->ADD_GOSSIP_ITEM( 7, " 返回主选单      "   , 7, GOSSIP_ACTION_INFO_DEF + 11);
                   player->SEND_GOSSIP_MENU(100000010,_Item->GetGUID());
                   break;
               case GOSSIP_ACTION_INFO_DEF + 12 :
                    player->ADD_GOSSIP_ITEM( 0, "[60] 传送到溶火之心         "  , 8, GOSSIP_ACTION_INFO_DEF + 1);  //[团] 溶火之心
                    player->ADD_GOSSIP_ITEM( 0, "[60] 传送到黑石塔上         "  , 8, GOSSIP_ACTION_INFO_DEF + 2);  //[团] 黑石塔上
                    player->ADD_GOSSIP_ITEM( 0, "[60] 传送到祖尔格拉布       "  , 8, GOSSIP_ACTION_INFO_DEF + 3);  //[团] 祖尔格拉布
                    player->ADD_GOSSIP_ITEM( 0, "[60] 传送到黑翼之巢         "  , 8, GOSSIP_ACTION_INFO_DEF + 4);  //[团] 黑翼之巢 
                    player->ADD_GOSSIP_ITEM( 0, "[60] 传送到到安其拉         "  , 8, GOSSIP_ACTION_INFO_DEF + 5);  //[团] 到安其拉
                    player->ADD_GOSSIP_ITEM( 0, "[60] 传送到安其拉废墟       "  , 8, GOSSIP_ACTION_INFO_DEF + 6);  //[团] 到安其拉废墟
                    player->ADD_GOSSIP_ITEM( 0, "[60] 传送到奥妮克希亚的巢穴 "  , 8, GOSSIP_ACTION_INFO_DEF + 7);  //[团] 奥妮克希亚的巢穴
                    player->ADD_GOSSIP_ITEM( 0, "[60] 传送到纳克萨玛斯       "  , 8, GOSSIP_ACTION_INFO_DEF + 8);  //[团] 到纳克萨玛斯 
                    player->ADD_GOSSIP_ITEM( 0, "[60] 传送到纳克萨玛斯第二层 "  , 8, GOSSIP_ACTION_INFO_DEF + 9);  //[团] 纳克萨玛斯第二层
					player->ADD_GOSSIP_ITEM( 7, " 返回主选单 "        , 8, GOSSIP_ACTION_INFO_DEF + 10);
                    player->SEND_GOSSIP_MENU(100000011,_Item->GetGUID());
                    break;
                case GOSSIP_ACTION_INFO_DEF + 13 :
                    player->ADD_GOSSIP_ITEM( 0, " 暮色森林 "          , 9, GOSSIP_ACTION_INFO_DEF + 1);
                    player->ADD_GOSSIP_ITEM( 0, " 辛特兰 "            , 9, GOSSIP_ACTION_INFO_DEF + 2);
                    player->ADD_GOSSIP_ITEM( 0, " 灰谷 "              , 9, GOSSIP_ACTION_INFO_DEF + 3);
                    player->ADD_GOSSIP_ITEM( 0, " 艾萨拉 "            , 9, GOSSIP_ACTION_INFO_DEF + 4);
                    player->ADD_GOSSIP_ITEM( 0, " 菲拉斯 "            , 9, GOSSIP_ACTION_INFO_DEF + 5);
                    player->ADD_GOSSIP_ITEM( 0, " 诅咒之地 "          , 9, GOSSIP_ACTION_INFO_DEF + 6);
                    player->ADD_GOSSIP_ITEM( 0, " 水晶谷 "            , 9, GOSSIP_ACTION_INFO_DEF + 7);
					player->ADD_GOSSIP_ITEM( 7, " 返回主选单 "        , 9, GOSSIP_ACTION_INFO_DEF + 8);
                    player->SEND_GOSSIP_MENU(99991,_Item->GetGUID());
                    break;
				case GOSSIP_ACTION_INFO_DEF + 14 :
					//player->ADD_GOSSIP_ITEM( 0, " 海加尔山 "			, 10, GOSSIP_ACTION_INFO_DEF + 1);
					player->ADD_GOSSIP_ITEM( 0, " 翡翠圣地 "			, 10, GOSSIP_ACTION_INFO_DEF + 2);
					player->ADD_GOSSIP_ITEM( 0, " 时光之穴 "			, 10, GOSSIP_ACTION_INFO_DEF + 3);
					player->ADD_GOSSIP_ITEM( 0, " 黑暗之门 "			, 10, GOSSIP_ACTION_INFO_DEF + 4);
					player->ADD_GOSSIP_ITEM( 0, " 双塔山 "				, 10, GOSSIP_ACTION_INFO_DEF + 5);
					player->ADD_GOSSIP_ITEM( 0, " 梦境之树 "			, 10, GOSSIP_ACTION_INFO_DEF + 6);
					//player->ADD_GOSSIP_ITEM( 0, " 联盟VIP岛 "				, 10, GOSSIP_ACTION_INFO_DEF + 7);
					//player->ADD_GOSSIP_ITEM( 0, " 部落VIP山 "	, 10, GOSSIP_ACTION_INFO_DEF + 8);
					player->ADD_GOSSIP_ITEM( 0, " 天涯海滩 "			, 10, GOSSIP_ACTION_INFO_DEF + 9);
					player->ADD_GOSSIP_ITEM( 0, " 安戈洛环形山 "		, 10, GOSSIP_ACTION_INFO_DEF + 10);
					player->ADD_GOSSIP_ITEM( 0, " 比吉尔的飞艇残骸 "	, 10, GOSSIP_ACTION_INFO_DEF + 11);
					player->ADD_GOSSIP_ITEM( 0, " 石堡瀑布 "			, 10, GOSSIP_ACTION_INFO_DEF + 12);
					player->ADD_GOSSIP_ITEM( 0, " 地铁海底 "			, 10, GOSSIP_ACTION_INFO_DEF + 13);
					//player->ADD_GOSSIP_ITEM( 0, " 程序员之岛 " , 10,GOSSIP_ACTION_INFO_DEF + 14);
					player->ADD_GOSSIP_ITEM( 2, " 卡拉赞 " , 10, GOSSIP_ACTION_INFO_DEF + 15);
					player->ADD_GOSSIP_ITEM( 7, " 返回主选单 ", 10, GOSSIP_ACTION_INFO_DEF + 16);
					player->SEND_GOSSIP_MENU(99997,_Item->GetGUID());
					break;
					// 新人出生地
	           case GOSSIP_ACTION_INFO_DEF + 16 :
                  if(player->getRace() == 1 || player->getRace() == 3 || player->getRace() == 4 || player->getRace() == 7 || player->getRace() == 11) //判断是否联盟
			     {	player->ADD_GOSSIP_ITEM( 0, " 出生地 人   类 "	, 11, GOSSIP_ACTION_INFO_DEF + 1);
				    player->ADD_GOSSIP_ITEM( 0, " 出生地 矮   人 "	, 11, GOSSIP_ACTION_INFO_DEF + 2);
				    player->ADD_GOSSIP_ITEM( 0, " 出生地 暗夜精灵 " , 11, GOSSIP_ACTION_INFO_DEF + 3);
				    player->ADD_GOSSIP_ITEM( 0, " 出生地 德莱尼 "	, 11, GOSSIP_ACTION_INFO_DEF + 4);
				 } else {			//部落
				    player->ADD_GOSSIP_ITEM( 0, " 出生地 兽  人 " , 11, GOSSIP_ACTION_INFO_DEF + 5);
				    player->ADD_GOSSIP_ITEM( 0, " 出生地 不死族 " , 11, GOSSIP_ACTION_INFO_DEF + 6);
				    player->ADD_GOSSIP_ITEM( 0, " 出生地 牛头人 " , 11, GOSSIP_ACTION_INFO_DEF + 7);
				    player->ADD_GOSSIP_ITEM( 0, " 出生地 血精灵 " , 11, GOSSIP_ACTION_INFO_DEF + 8);
			    }
				    player->ADD_GOSSIP_ITEM( 7, " 返回主选单 " , 11, GOSSIP_ACTION_INFO_DEF + 9);
		            player->SEND_GOSSIP_MENU(99991,_Item->GetGUID());
		            break;

				case GOSSIP_ACTION_INFO_DEF + 17 :
                    player->ADD_GOSSIP_ITEM( 0, " 黑暗之门 "            , 12, GOSSIP_ACTION_INFO_DEF + 1);
                    //player->ADD_GOSSIP_ITEM( 0, " 荣耀堡 "            , 12, GOSSIP_ACTION_INFO_DEF + 2);
                    //player->ADD_GOSSIP_ITEM( 0, " 萨尔玛 "          , 12, GOSSIP_ACTION_INFO_DEF + 3);
                    player->ADD_GOSSIP_ITEM( 0, " 海加尔山之战 "            , 12, GOSSIP_ACTION_INFO_DEF + 4);
                    player->ADD_GOSSIP_ITEM( 0, " 赞加沼泽 "              , 12, GOSSIP_ACTION_INFO_DEF + 5);
                    player->ADD_GOSSIP_ITEM( 0, " 影月谷 "          , 12, GOSSIP_ACTION_INFO_DEF + 6);
                    player->ADD_GOSSIP_ITEM( 0, " 沙塔斯城 "    , 12, GOSSIP_ACTION_INFO_DEF + 7);
                    player->ADD_GOSSIP_ITEM( 0, " 纳格兰 "          , 12, GOSSIP_ACTION_INFO_DEF + 8);
                    player->ADD_GOSSIP_ITEM( 0, " 风暴尖塔 "            , 12, GOSSIP_ACTION_INFO_DEF + 9);
					player->ADD_GOSSIP_ITEM( 7, " 返回主选单 "                 , 12, GOSSIP_ACTION_INFO_DEF + 10);
                    player->SEND_GOSSIP_MENU(99994,_Item->GetGUID());
                    break;
            case GOSSIP_ACTION_INFO_DEF + 18 :
					player->ADD_GOSSIP_ITEM( 0, "  血熔炉 "            , 13, GOSSIP_ACTION_INFO_DEF + 1);
					player->ADD_GOSSIP_ITEM( 0, "  破碎大厅 "          , 13, GOSSIP_ACTION_INFO_DEF + 2);
                    player->ADD_GOSSIP_ITEM( 0, "  地狱火堡垒 "        , 13, GOSSIP_ACTION_INFO_DEF + 3);                 
					player->ADD_GOSSIP_ITEM( 0, "  奴隶监狱 "          , 13, GOSSIP_ACTION_INFO_DEF + 4);                        
                    player->ADD_GOSSIP_ITEM( 0, "  盘牙洞穴 "          , 13, GOSSIP_ACTION_INFO_DEF + 5);
					player->ADD_GOSSIP_ITEM( 0, "  蒸汽洞窟 "          , 13, GOSSIP_ACTION_INFO_DEF + 6);
                    player->ADD_GOSSIP_ITEM( 0, "  黑色沼泽 "          , 13, GOSSIP_ACTION_INFO_DEF + 7);
					player->ADD_GOSSIP_ITEM( 0, "  波塔尼卡 "          , 13, GOSSIP_ACTION_INFO_DEF + 8);
					player->ADD_GOSSIP_ITEM( 0, "  亚克崔兹 "          , 13, GOSSIP_ACTION_INFO_DEF + 9);
					player->ADD_GOSSIP_ITEM( 0, "  麦克那尔 "          , 13, GOSSIP_ACTION_INFO_DEF + 10);
                    player->ADD_GOSSIP_ITEM( 0, "  奥金顿 "            , 13, GOSSIP_ACTION_INFO_DEF + 11);
                    player->ADD_GOSSIP_ITEM( 0, "  塞司克大厅 "        , 13, GOSSIP_ACTION_INFO_DEF + 12);
                    player->ADD_GOSSIP_ITEM( 0, "  法力墓地 "          , 13, GOSSIP_ACTION_INFO_DEF + 13);
                    player->ADD_GOSSIP_ITEM( 0, "  奥金尼地穴 "        , 13, GOSSIP_ACTION_INFO_DEF + 14);
					player->ADD_GOSSIP_ITEM( 7, "  返回主选单 "        , 13, GOSSIP_ACTION_INFO_DEF + 15);
                    player->SEND_GOSSIP_MENU(99994,_Item->GetGUID());
					break;

            case GOSSIP_ACTION_INFO_DEF + 19 :
                    player->ADD_GOSSIP_ITEM( 0, "  暴风城超级监狱 "    , 14, GOSSIP_ACTION_INFO_DEF + 1);
                    player->ADD_GOSSIP_ITEM( 0, "  遗忘之井"           , 14, GOSSIP_ACTION_INFO_DEF + 2);
                    player->ADD_GOSSIP_ITEM( 0, "  鬼魂之地 "          , 14, GOSSIP_ACTION_INFO_DEF + 3);
                    player->ADD_GOSSIP_ITEM( 0, "  卡拉赞 "            , 14, GOSSIP_ACTION_INFO_DEF + 4);                   
                    player->ADD_GOSSIP_ITEM( 0, "  风暴要塞 "          , 14, GOSSIP_ACTION_INFO_DEF + 5);                  
                    player->ADD_GOSSIP_ITEM( 0, "  凤凰大厅 "          , 14, GOSSIP_ACTION_INFO_DEF + 6);
                    player->ADD_GOSSIP_ITEM( 0, "  黑暗神庙 "          , 14, GOSSIP_ACTION_INFO_DEF + 7);
                    player->ADD_GOSSIP_ITEM( 0, "  赞格沼泽 "          , 14, GOSSIP_ACTION_INFO_DEF + 8);
					player->ADD_GOSSIP_ITEM( 0, "  毒蛇神殿 "          , 14, GOSSIP_ACTION_INFO_DEF + 9);
                    player->ADD_GOSSIP_ITEM( 0, "  格鲁尔的巢穴 "      , 14, GOSSIP_ACTION_INFO_DEF + 10);
                    player->ADD_GOSSIP_ITEM( 0, "  玛瑟里顿的巢穴 "    , 14, GOSSIP_ACTION_INFO_DEF + 11);
					player->ADD_GOSSIP_ITEM( 7, "  返回主选单 "        , 14, GOSSIP_ACTION_INFO_DEF + 12);
                    player->SEND_GOSSIP_MENU(99994,_Item->GetGUID());
                    break;

               case GOSSIP_ACTION_INFO_DEF + 21 ://飞行点全开通
			        uint32 price_flags;
			        price_flags = 500000; //收10G的钱 

					for (uint8 i=0; i<8; i++)
					{ 
						if(player->GetTutorialInt(i) == 0xFFFFFFFF)
						{
							icount++;
						}
					}

					if(icount == 8)
					{
							player->GetSession()->SendAreaTriggerMessage("您已经打开了所有飞行点了！");
							player->CLOSE_GOSSIP_MENU();
					}
					else
					{
						if (player->GetMoney() >= price_flags)
						{
							player->ModifyMoney(-int32(price_flags));
							for (uint8 i=0; i<8; i++)
								{ player->SetTaximask(i, 0xFFFFFFFF); }
								player->GetSession()->SendAreaTriggerMessage("朋友，尽情的翱翔在魔兽世界中吧！");
								player->CLOSE_GOSSIP_MENU();
						}
						else 
						{
							player->GetSession()->SendAreaTriggerMessage("您的金钱不足,请攒够后使用");
							player->CLOSE_GOSSIP_MENU();
						}
					}
			        break;

               case GOSSIP_ACTION_INFO_DEF + 22://魔兽银行
                    player->SEND_BANKERLIST(_Item->GetGUID());
					player->CLOSE_GOSSIP_MENU();
                    break;

	           /*case GOSSIP_ACTION_INFO_DEF + 9://月狼技能学习
                    if (player->getClass()==1||player->getClass()==2)
					{
				    player->ADD_GOSSIP_ITEM( 2, "板甲技能学习         "  , 8, GOSSIP_ACTION_INFO_DEF + 1);  //板甲技能学习
					}
                    if (player->getClass()==1)
			        {
					player->ADD_GOSSIP_ITEM( 2, "[需要等级20]狂暴姿态技能学习    "  , 8, GOSSIP_ACTION_INFO_DEF + 2);  //狂暴姿态技能学习
                    player->ADD_GOSSIP_ITEM( 2, "[需要等级20]防御姿态技能学习    "  , 8, GOSSIP_ACTION_INFO_DEF + 3);  //防御姿态技能学习
                    player->SEND_GOSSIP_MENU(100000008,_Item->GetGUID());
					}
					if (player->getClass()==3)
			        {
                    player->ADD_GOSSIP_ITEM( 2, "驯服野兽技能学习    "  , 8, GOSSIP_ACTION_INFO_DEF + 4);  //驯服野兽技能学习
					player->ADD_GOSSIP_ITEM( 2, "喂养宠物技能学习    "  , 8, GOSSIP_ACTION_INFO_DEF + 5);  //喂养宠物技能学习
			        player->SEND_GOSSIP_MENU(100000008,_Item->GetGUID());
					}
					player->SEND_GOSSIP_MENU(100000008,_Item->GetGUID());
                    break;*/




				case GOSSIP_ACTION_INFO_DEF + 15:
					GossipHello_Item(player,_Item,targets);
					break;
				case GOSSIP_ACTION_INFO_DEF + 20:
					GossipHello_Item(player,_Item,targets);
					break;
				case GOSSIP_ACTION_INFO_DEF + 28:
					GossipHello_Item(player,_Item,targets);
					break;
				/*case GOSSIP_ACTION_INFO_DEF + 24 ://飞行坐骑
                    player->CastSpell(player,37015,true);
                    break;*/


               /*case GOSSIP_ACTION_INFO_DEF + 24: //宝石商店
                    player->GetSession()->OpenShop(_Item->GetGUID(),15);
                   break;*/


        }
	  }
  else if (player->isInFlight())
  {
      player->GetSession()->SendAreaTriggerMessage("银风齿轮无法在飞行中使用，请到达目的再使用");
  }
  else if (player->IsMounted())
  {
      player->GetSession()->SendAreaTriggerMessage("银风齿轮无法在坐骑中使用，请先下坐骑再使用");
  }
  else 
  {
      player->GetSession()->SendAreaTriggerMessage("银风齿轮无法在战斗中使用，请停止战斗再使用");
  }
}

bool GossipSelect_Item(Player *player, Item *_Item, uint32 sender, uint32 action , SpellCastTargets const& targets)
{
   if(!player->isInCombat())
      {
        switch(sender) {
                case GOSSIP_SENDER_MAIN :
                     SendDefaultMenu_Item(player, _Item, action,targets);
                     break;
   case 3 :
	    uint32 price_city;
		price_city= 10000; //city
        switch(action) {
        //统一格式说明：(MapID, X, Y, Z, 0);
                                // 暴风城 统一格式说明：(MapID, X, Y, Z, 0);
                                case GOSSIP_ACTION_INFO_DEF + 1 :
									if (player->GetMoney() >= price_city) 
									{
										player->ModifyMoney(-int32(price_city));
                                        player->TeleportTo(0,-9065,434,94,0);
										player->CLOSE_GOSSIP_MENU();
									}
									else 
									player->GetSession()->SendAreaTriggerMessage("您的金钱不足,请攒够后使用");
									player->CLOSE_GOSSIP_MENU();
                                    break;
                                // 铁炉堡
                                case GOSSIP_ACTION_INFO_DEF + 2 :
									if (player->GetMoney() >= price_city) 
									{
										player->ModifyMoney(-int32(price_city));
                                        player->TeleportTo(0,-5032,-819,495,0);
										player->CLOSE_GOSSIP_MENU();
										}
									else 
									player->GetSession()->SendAreaTriggerMessage("您的金钱不足,请攒够后使用");
									player->CLOSE_GOSSIP_MENU();
                                        break;
                                // 达纳苏斯
                                case GOSSIP_ACTION_INFO_DEF + 3 :
									if (player->GetMoney() >= price_city) 
									{
										player->ModifyMoney(-int32(price_city));
                                        player->TeleportTo(1,9961,2055,1329,0);
										player->CLOSE_GOSSIP_MENU();
									}
									else 
									player->GetSession()->SendAreaTriggerMessage("您的金钱不足,请攒够后使用");
									player->CLOSE_GOSSIP_MENU();
                                        break;
                                case GOSSIP_ACTION_INFO_DEF + 4 ://传送到蓝迷岛
				    		       if (player->GetMoney() >= price_city) 
									{
									   player->ModifyMoney(-int32(price_city));
                                       player->TeleportTo(530, -4073.832275, -12030.595703, 1.599608,1.403060);
									   player->CLOSE_GOSSIP_MENU();
										}
									else 
									player->GetSession()->SendAreaTriggerMessage("您的金钱不足,请攒够后使用");
									player->CLOSE_GOSSIP_MENU();
                                   break;
                               //返回
                               case GOSSIP_ACTION_INFO_DEF + 5 :
								        GossipHello_Item(player, _Item,targets);
                                        break;
                                       }
                                   break;
   case 4 :
	    uint32 price_city1;
		price_city1= 10000; //city
        switch(action) {
        //统一格式说明：(MapID, X, Y, Z, 0);
                                // 奥格瑞玛
                                case GOSSIP_ACTION_INFO_DEF + 1 :
									if (player->GetMoney() >= price_city1) 
									{
										player->ModifyMoney(-int32(price_city1));
                                        player->TeleportTo(1,1317,-4383,27,0);
										player->CLOSE_GOSSIP_MENU();
									}
									else 
									player->GetSession()->SendAreaTriggerMessage("您的金钱不足,请攒够后使用");
									player->CLOSE_GOSSIP_MENU();
                                        break;
                                // 雷霆崖
                                case GOSSIP_ACTION_INFO_DEF + 2 :
									if (player->GetMoney() >= price_city1) 
									{
										player->ModifyMoney(-int32(price_city1));
                                        player->TeleportTo(1,-1391,140,23,0);
										player->CLOSE_GOSSIP_MENU();
									}
									else 
									player->GetSession()->SendAreaTriggerMessage("您的金钱不足,请攒够后使用");
									player->CLOSE_GOSSIP_MENU();
                                        break;
                                // 幽暗城
                                case GOSSIP_ACTION_INFO_DEF + 3 :
									if (player->GetMoney() >= price_city1) 
									{
										player->ModifyMoney(-int32(price_city1));
                                        player->TeleportTo(0,1909,235,53,0);
										player->CLOSE_GOSSIP_MENU();
									}
									else 
									player->GetSession()->SendAreaTriggerMessage("您的金钱不足,请攒够后使用");
									player->CLOSE_GOSSIP_MENU();
                                        break;
                               case GOSSIP_ACTION_INFO_DEF + 4 ://传送到银月城
									if (player->GetMoney() >= price_city1) 
									{
										player->ModifyMoney(-int32(price_city1));
                                    player->TeleportTo(530, 9301.712891, -7268.829102, 15.252191,0.383920);
									player->CLOSE_GOSSIP_MENU();
									}
									else 
									player->GetSession()->SendAreaTriggerMessage("您的金钱不足,请攒够后使用");
									player->CLOSE_GOSSIP_MENU();
                                    break;
                                //返回
                               case GOSSIP_ACTION_INFO_DEF + 5 :
								        GossipHello_Item(player, _Item,targets);
                                        break;
                                    }
                                    break;
    case 5 :
	    uint32 price_city2;
		price_city2= 10000; //city
        switch(action) {
        //统一格式说明：(MapID, X, Y, Z, 0);
                                // 棘齿城 
                                case GOSSIP_ACTION_INFO_DEF + 1 :
									if (player->GetMoney() >= price_city2) 
									{
										player->ModifyMoney(-int32(price_city2));
                                        player->TeleportTo(1,-977,-3788,6,0);
										player->CLOSE_GOSSIP_MENU();
									}
									else 
										player->GetSession()->SendAreaTriggerMessage("您的金钱不足,请攒够后使用");
										player->CLOSE_GOSSIP_MENU();
                                        break;
                                // 藏宝海湾
                                case GOSSIP_ACTION_INFO_DEF + 2 :
									if (player->GetMoney() >= price_city2) 
									{
										player->ModifyMoney(-int32(price_city2));
                                        player->TeleportTo(0,-14302,518,9,0);
										player->CLOSE_GOSSIP_MENU();
									}
									else 
										player->GetSession()->SendAreaTriggerMessage("您的金钱不足,请攒够后使用");
										player->CLOSE_GOSSIP_MENU();
                                        break;
				                // 冬泉谷 
				              case GOSSIP_ACTION_INFO_DEF + 4 :
  									if (player->GetMoney() >= price_city2) 
									{
								   player->ModifyMoney(-int32(price_city2));
					               player->TeleportTo(1,6723.473145,-4649.303711,720.980835,4.653478);
								   player->CLOSE_GOSSIP_MENU();
									}
									else 
										player->GetSession()->SendAreaTriggerMessage("您的金钱不足,请攒够后使用");
										player->CLOSE_GOSSIP_MENU();
					                 break;
				               // 加基森 
				              case GOSSIP_ACTION_INFO_DEF + 3 :
				                    if (player->GetMoney() >= price_city2) 
					                {
									player->ModifyMoney(-int32(price_city2));
					                player->TeleportTo(1,-7177.103516,-3788.077393,8.370177,3.621340);
									player->CLOSE_GOSSIP_MENU();
					                }
					               else 
										player->GetSession()->SendAreaTriggerMessage("您的金钱不足,请攒够后使用");
										player->CLOSE_GOSSIP_MENU();
					               break;
				               // 塞纳里奥要塞 
				              case GOSSIP_ACTION_INFO_DEF + 6 :
				                    if (player->GetMoney() >= price_city2) 
					                {
									player->ModifyMoney(-int32(price_city2));
					                player->TeleportTo(1,-6831.1,748.8,42.5,0);
									player->CLOSE_GOSSIP_MENU();
					                }
					               else 
										player->GetSession()->SendAreaTriggerMessage("您的金钱不足,请攒够后使用");
										player->CLOSE_GOSSIP_MENU();
					               break;
				            // 黑暗之门 
				              /*case GOSSIP_ACTION_INFO_DEF + 5 :
					               if (player->GetMoney() >= price_city2) 
				                   {
					               player->ModifyMoney(-int32(price_city2));
				                   player->TeleportTo(0,-11863.832,-3203.4826,-23.327,0);
					               }
					               else player->SEND_GOSSIP_MENU(99991,_Item->GetGUID());
				                   break;*/
                               //返回
                               case GOSSIP_ACTION_INFO_DEF + 5 :
								        GossipHello_Item(player, _Item,targets);
                                        break;
							       }
                                   break;
		// 各新人出生地
		case 11 : 
			switch(action) {
				// 人类 统一格式说明：(MapID, X, Y, Z, 0);
				case GOSSIP_ACTION_INFO_DEF + 1 :
					player->TeleportTo(0,-8947.4,-132.4,83.6,0);
					player->CLOSE_GOSSIP_MENU();
					break;
				// 矮人
				case GOSSIP_ACTION_INFO_DEF + 2 :
					player->TeleportTo(0,-6234.6,330,382.9,0);
					player->CLOSE_GOSSIP_MENU();
					break;
				// 暗夜精灵
				case GOSSIP_ACTION_INFO_DEF + 3 :
					player->TeleportTo(1,10321.3,845.6,1327.5,0);
					player->CLOSE_GOSSIP_MENU();
					break;
				// 德莱尼
				case GOSSIP_ACTION_INFO_DEF + 4 :
					player->TeleportTo(530,-3980.5,-13892.9,95.3,0);
					player->CLOSE_GOSSIP_MENU();
					break;
				// 兽人
				case GOSSIP_ACTION_INFO_DEF + 5 :
					player->TeleportTo(1,-604,-4263.8,39,0);
					player->CLOSE_GOSSIP_MENU();
					break;
				// 不死族
				case GOSSIP_ACTION_INFO_DEF + 6 :
					player->TeleportTo(0,1695.7,1668.1,133.2,0);
					player->CLOSE_GOSSIP_MENU();
					break;
				// 牛头人 
				case GOSSIP_ACTION_INFO_DEF + 7 :
					player->TeleportTo(1,-2930,-262.5,53.2,0);
					player->CLOSE_GOSSIP_MENU();
					break;
				// 血精灵
				case GOSSIP_ACTION_INFO_DEF + 8 :
					player->TeleportTo(530,10347.7,-6362.5,34.3,0);
					player->CLOSE_GOSSIP_MENU();
					break;
                //返回
                case GOSSIP_ACTION_INFO_DEF + 9 :
                     GossipHello_Item(player, _Item,targets);
                     break;
			}
			break;
			// 初级副本
    case 6 :
        uint32 price_0;
	    price_0 = 30000;
        switch(action) {
              // ·[14] 怒焰裂谷 统一格式说明：(MapID, X, Y, Z, 0);
              case GOSSIP_ACTION_INFO_DEF + 1 :
                   uint32 Level1; //申明角色等级变量
                   Level1 = 14;   //给变量赋值
                   if (player->getLevel()  >= Level1)
                   {
				   if (player->GetMoney() >= price_0) 
				   {
				   player->ModifyMoney(-int32(price_0));
		           player->TeleportTo(389,2.024650,-10.021000,-16.187500,0);
					player->CLOSE_GOSSIP_MENU();
				   }
					player->GetSession()->SendAreaTriggerMessage("您的金钱不足,请攒够后使用");
					player->CLOSE_GOSSIP_MENU();
                   }
				   else 
				   {
				   player->GetSession()->SendAreaTriggerMessage("您的等级太低,无法使用");
				   player->CLOSE_GOSSIP_MENU();
				   }
                   break;
              // ·[19] 死亡矿井
              case GOSSIP_ACTION_INFO_DEF + 2 :
                   uint32 Level2; //申明角色等级变量
                   Level2 = 19;   //给变量赋值
                   if (player->getLevel()  >= Level2)
                   {
				   if (player->GetMoney() >= price_0) 
				   {
				   player->ModifyMoney(-int32(price_0));
                   player->TeleportTo(36,-16.4,-383.07,61.78,0);
				   player->CLOSE_GOSSIP_MENU();
				   }
				   else 
					player->GetSession()->SendAreaTriggerMessage("您的金钱不足,请攒够后使用");
					player->CLOSE_GOSSIP_MENU();
                   }
				   else 
				   {
				   player->GetSession()->SendAreaTriggerMessage("您的等级太低,无法使用");
				   player->CLOSE_GOSSIP_MENU();
				   }
                   break;
              // ·[22] 哀嚎洞穴
              case GOSSIP_ACTION_INFO_DEF + 3 :
                   uint32 Level3; //申明角色等级变量
                   Level3 = 22;   //给变量赋值
                   if (player->getLevel()  >= Level3)
                   {
				   if (player->GetMoney() >= price_0) 
				   {
				   player->ModifyMoney(-int32(price_0));
                   player->TeleportTo(43,-161.841995,133.266998,-73.866203,0);
				   player->CLOSE_GOSSIP_MENU();
				   }
				   else 
					player->GetSession()->SendAreaTriggerMessage("您的金钱不足,请攒够后使用");
					player->CLOSE_GOSSIP_MENU();
                   }
				   else 
				   {
				   player->GetSession()->SendAreaTriggerMessage("您的等级太低,无法使用");
				   player->CLOSE_GOSSIP_MENU();
				   }
                   break;
              // ·[24] 影牙城堡
              case GOSSIP_ACTION_INFO_DEF + 4 :
                   uint32 Level4; //申明角色等级变量
                   Level4 = 24;   //给变量赋值
                   if (player->getLevel()  >= Level4)
                   {
				   if (player->GetMoney() >= price_0) 
				   {
				   player->ModifyMoney(-int32(price_0));
                   player->TeleportTo(33,-228.19,2110.56,76.89,0);
				   player->CLOSE_GOSSIP_MENU();
				   }
				   else 
					player->GetSession()->SendAreaTriggerMessage("您的金钱不足,请攒够后使用");
					player->CLOSE_GOSSIP_MENU();
                   }
				   else 
				   {
				   player->GetSession()->SendAreaTriggerMessage("您的等级太低,无法使用");
				   player->CLOSE_GOSSIP_MENU();
				   }
                   break;
              // ·[26] 黑暗深渊
              case GOSSIP_ACTION_INFO_DEF + 5 :
                   uint32 Level5; //申明角色等级变量
                   Level5 = 26;   //给变量赋值
                   if (player->getLevel()  >= Level5)
                   {
				   if (player->GetMoney() >= price_0) 
				   {
				   player->ModifyMoney(-int32(price_0));
                   player->TeleportTo(48,-150.367004,102.995003,-40.555801,0);
				   player->CLOSE_GOSSIP_MENU();
				   }
				   else 
					player->GetSession()->SendAreaTriggerMessage("您的金钱不足,请攒够后使用");
					player->CLOSE_GOSSIP_MENU();
                   }
				   else 
				   {
				   player->GetSession()->SendAreaTriggerMessage("您的等级太低,无法使用");
				   player->CLOSE_GOSSIP_MENU();
				   }
                   break;
              // ·[27] 暴风城监狱
              case GOSSIP_ACTION_INFO_DEF + 6 :
                   uint32 Level6; //申明角色等级变量
                   Level6 = 27;   //给变量赋值
                   if (player->getLevel()  >= Level6)
                   {
				   if (player->GetMoney() >= price_0) 
				   {
				   player->ModifyMoney(-int32(price_0));
                   player->TeleportTo(34,48.29,0.45,-16.14,0);
				   player->CLOSE_GOSSIP_MENU();
				   }
				   else 
					player->GetSession()->SendAreaTriggerMessage("您的金钱不足,请攒够后使用");
					player->CLOSE_GOSSIP_MENU();
                   }
				   else 
				   {
				   player->GetSession()->SendAreaTriggerMessage("您的等级太低,无法使用");
				   player->CLOSE_GOSSIP_MENU();
				   }
                   break;
              // ·[31] 剃刀沼泽
              case GOSSIP_ACTION_INFO_DEF + 7 :
                   uint32 Level7; //申明角色等级变量
                   Level7 = 31;   //给变量赋值
                   if (player->getLevel()  >= Level7)
                   {
				   if (player->GetMoney() >= price_0) 
				   {
				   player->ModifyMoney(-int32(price_0));
                   player->TeleportTo(47,1943,1544,82,0);
				   player->CLOSE_GOSSIP_MENU();
				   }
				   else 
					player->GetSession()->SendAreaTriggerMessage("您的金钱不足,请攒够后使用");
					player->CLOSE_GOSSIP_MENU();
		           }
				   else 
				   {
				   player->GetSession()->SendAreaTriggerMessage("您的等级太低,无法使用");
				   player->CLOSE_GOSSIP_MENU();
				   }
                   break;
              // ·[33] 诺莫瑞根
              case GOSSIP_ACTION_INFO_DEF + 8 :
                   uint32 Level8; //申明角色等级变量
                   Level8 = 33;   //给变量赋值
                   if (player->getLevel()  >= Level8)
                   {
				   if (player->GetMoney() >= price_0) 
				   {
				   player->ModifyMoney(-int32(price_0));
                   player->TeleportTo(90,-332.562988,-3.445,-152.845993,0);
				   player->CLOSE_GOSSIP_MENU();
				   }
				   else 
					player->GetSession()->SendAreaTriggerMessage("您的金钱不足,请攒够后使用");
					player->CLOSE_GOSSIP_MENU();
                   }
				   else 
				   {
				   player->GetSession()->SendAreaTriggerMessage("您的等级太低,无法使用");
				   player->CLOSE_GOSSIP_MENU();
				   }
                   break;
              // ·[40] 血色修道院
              case GOSSIP_ACTION_INFO_DEF + 9 :
                   uint32 Level9; //申明角色等级变量
                   Level9 = 40;   //给变量赋值
                   if (player->getLevel()  >= Level9)
                   {
				   if (player->GetMoney() >= price_0) 
				   {
				   player->ModifyMoney(-int32(price_0));
                   player->TeleportTo(189,855.903992,1321.939941,18.673000,0);
				   player->CLOSE_GOSSIP_MENU();
				   }
				   else 
					player->GetSession()->SendAreaTriggerMessage("您的金钱不足,请攒够后使用");
					player->CLOSE_GOSSIP_MENU();
                   }
				   else 
				   {
				   player->GetSession()->SendAreaTriggerMessage("您的等级太低,无法使用");
				   player->CLOSE_GOSSIP_MENU();
				   }
                   break;
              // ·[42] 剃刀高地
              case GOSSIP_ACTION_INFO_DEF + 10 :
                   uint32 Level10; //申明角色等级变量
                   Level10 = 42;   //给变量赋值
                   if (player->getLevel()  >= Level10)
                   {
				   if (player->GetMoney() >= price_0) 
				   {
				   player->ModifyMoney(-int32(price_0));
                   player->TeleportTo(129,2593.209961,1109.459961,51.093300,0);
				   player->CLOSE_GOSSIP_MENU();
				   }
				   else 
					player->GetSession()->SendAreaTriggerMessage("您的金钱不足,请攒够后使用");
					player->CLOSE_GOSSIP_MENU();
                   }
				   else 
				   {
				   player->GetSession()->SendAreaTriggerMessage("您的等级太低,无法使用");
				   player->CLOSE_GOSSIP_MENU();
				   }
                   break;
              // ·[45] 奥达曼
              case GOSSIP_ACTION_INFO_DEF + 11 :
                   uint32 Level11; //申明角色等级变量
                   Level11 = 45;   //给变量赋值
                   if (player->getLevel()  >= Level11)
                   {
				   if (player->GetMoney() >= price_0) 
				   {
				   player->ModifyMoney(-int32(price_0));
                   player->TeleportTo(70,-227.529007,45.009800,-46.019600,0);
				   player->CLOSE_GOSSIP_MENU();
				   }
				   else 
					player->GetSession()->SendAreaTriggerMessage("您的金钱不足,请攒够后使用");
					player->CLOSE_GOSSIP_MENU();
                   }
				   else 
				   {
				   player->GetSession()->SendAreaTriggerMessage("您的等级太低,无法使用");
				   player->CLOSE_GOSSIP_MENU();
				   }
                   break;
              //返回
               case GOSSIP_ACTION_INFO_DEF + 12 :
				    GossipHello_Item(player, _Item,targets);
                    break;
                       }
    break;

        // 中级副本
    case 7:
        uint32 price1;
		price1 = 50000;
        switch(action) {
              // ·[46] 祖尔法拉克 统一格式说明：(MapID, X, Y, Z, 0);
              case GOSSIP_ACTION_INFO_DEF + 1 :
                   uint32 Level12; //申明角色等级变量
                   Level12 = 46;   //给变量赋值
                   if (player->getLevel()  >= Level12)
                   {
				   if (player->GetMoney() >= price1) 
				   {
				   player->ModifyMoney(-int32(price1));
                   player->TeleportTo(209,1213,841,8.9,0);
				   player->CLOSE_GOSSIP_MENU();
				   }
				   else 
					player->GetSession()->SendAreaTriggerMessage("您的金钱不足,请攒够后使用");
					player->CLOSE_GOSSIP_MENU();
                   }
				   else 
				   {
				   player->GetSession()->SendAreaTriggerMessage("您的等级太低,无法使用");
				   player->CLOSE_GOSSIP_MENU();
				   }
                   break;
              // ·[49] 玛拉顿
              case GOSSIP_ACTION_INFO_DEF + 2 :
                   uint32 Level13; //申明角色等级变量
                   Level13 = 49;   //给变量赋值
                   if (player->getLevel()  >= Level13)
                   {
				   if (player->GetMoney() >= price1) 
				   {
				   player->ModifyMoney(-int32(price1));
                   player->TeleportTo(349,1012.700012,-459.317993,-43.547100,0);
				   player->CLOSE_GOSSIP_MENU();
				   }
				   else 
					player->GetSession()->SendAreaTriggerMessage("您的金钱不足,请攒够后使用");
					player->CLOSE_GOSSIP_MENU();
                   }
				   else 
				   {
				   player->GetSession()->SendAreaTriggerMessage("您的等级太低,无法使用");
				   player->CLOSE_GOSSIP_MENU();
				   }
                   break;
              // ·[53] 失落的神庙
              case GOSSIP_ACTION_INFO_DEF + 3 :
                   uint32 Level14; //申明角色等级变量
                   Level14 = 53;   //给变量赋值
                   if (player->getLevel()  >= Level14)
                   {
				   if (player->GetMoney() >= price1) 
				   {
				   player->ModifyMoney(-int32(price1));
                   player->TeleportTo(109,-313.369995,99.955399,-131.848999,0);
				   player->CLOSE_GOSSIP_MENU();
				   }
				   else 
					player->GetSession()->SendAreaTriggerMessage("您的金钱不足,请攒够后使用");
					player->CLOSE_GOSSIP_MENU();
                   }
				   else 
				   {
				   player->GetSession()->SendAreaTriggerMessage("您的等级太低,无法使用");
				   player->CLOSE_GOSSIP_MENU();
				   }
                   break;
              // ·[57] 黑石深渊
              case GOSSIP_ACTION_INFO_DEF + 4 :
                   uint32 Level15; //申明角色等级变量
                   Level15 = 57;   //给变量赋值
                   if (player->getLevel()  >= Level15)
                   {
				   if (player->GetMoney() >= price1) 
				   {
				   player->ModifyMoney(-int32(price1));
                   player->TeleportTo(230,456.928986,34.927700,-69.388100,0);
				   player->CLOSE_GOSSIP_MENU();
				   }
				   else 
					player->GetSession()->SendAreaTriggerMessage("您的金钱不足,请攒够后使用");
					player->CLOSE_GOSSIP_MENU();
                   }
				   else 
				   {
				   player->GetSession()->SendAreaTriggerMessage("您的等级太低,无法使用");
				   player->CLOSE_GOSSIP_MENU();
				   }
                   break;
              // ·[60] 通灵学院
              case GOSSIP_ACTION_INFO_DEF + 5 :
                   uint32 Level16; //申明角色等级变量
                   Level16 = 60;   //给变量赋值
                   if (player->getLevel()  >= Level16)
                   {
				   if (player->GetMoney() >= price1) 
				   {
				   player->ModifyMoney(-int32(price1));
                   player->TeleportTo(289,199,126,135,0);
				   player->CLOSE_GOSSIP_MENU();
				   }
				   else 
					player->GetSession()->SendAreaTriggerMessage("您的金钱不足,请攒够后使用");
					player->CLOSE_GOSSIP_MENU();
                   }
				   else 
				   {
				   player->GetSession()->SendAreaTriggerMessage("您的等级太低,无法使用");
				   player->CLOSE_GOSSIP_MENU();
				   }
                   break;
              // ·[60] 厄运之槌 (北区)
              case GOSSIP_ACTION_INFO_DEF + 6 :
                   uint32 Level17; //申明角色等级变量
                   Level17 = 60;   //给变量赋值
                   if (player->getLevel()  >= Level17)
                   {
				   if (player->GetMoney() >= price1) 
				   {
				   player->ModifyMoney(-int32(price1));
                   player->TeleportTo(429,255.164001,-17.024200,-2.560600,0);
				   player->CLOSE_GOSSIP_MENU();
				   }
				   else 
					player->GetSession()->SendAreaTriggerMessage("您的金钱不足,请攒够后使用");
					player->CLOSE_GOSSIP_MENU();
                   }
				   else 
				   {
				   player->GetSession()->SendAreaTriggerMessage("您的等级太低,无法使用");
				   player->CLOSE_GOSSIP_MENU();
				   }
                   break;
              // ·[60] 厄运之槌 (东区)
              case GOSSIP_ACTION_INFO_DEF + 7 :
                   uint32 Level29; //申明角色等级变量
                   Level29 = 60;   //给变量赋值
                   if (player->getLevel()  >= Level29)
                   {
				   if (player->GetMoney() >= price1) 
				   {
				   player->ModifyMoney(-int32(price1));
                   player->TeleportTo(429,46.24,-155.53,-2.71349,0);
				   player->CLOSE_GOSSIP_MENU();
				   }
				   else 
					player->GetSession()->SendAreaTriggerMessage("您的金钱不足,请攒够后使用");
					player->CLOSE_GOSSIP_MENU();
                   }
				   else 
				   {
				   player->GetSession()->SendAreaTriggerMessage("您的等级太低,无法使用");
				   player->CLOSE_GOSSIP_MENU();
				   }
                   break;
              // ·[60] 厄运之槌 (西区)
              case GOSSIP_ACTION_INFO_DEF + 8 :
                   uint32 Level18; //申明角色等级变量
                   Level18 = 60;   //给变量赋值
                   if (player->getLevel()  >= Level18)
                   {
				   if (player->GetMoney() >= price1) 
				   {
				   player->ModifyMoney(-int32(price1));
                   player->TeleportTo(429,32.722599,159.417007,-3.470170,0);
				   player->CLOSE_GOSSIP_MENU();
				   }
				   else 
					player->GetSession()->SendAreaTriggerMessage("您的金钱不足,请攒够后使用");
					player->CLOSE_GOSSIP_MENU();
                   }
				   else 
				   {
				   player->GetSession()->SendAreaTriggerMessage("您的等级太低,无法使用");
				   player->CLOSE_GOSSIP_MENU();
				   }
                   break;
              // ·[60] 斯坦索姆
              case GOSSIP_ACTION_INFO_DEF + 9 :
                   uint32 Level19; //申明角色等级变量
                   Level19 = 60;   //给变量赋值
                   if (player->getLevel()  >= Level19)
                   {
				   if (player->GetMoney() >= price1) 
				   {
				   player->ModifyMoney(-int32(price1));
                   player->TeleportTo(329,3392,-3379,143,0);
				   player->CLOSE_GOSSIP_MENU();
				   }
				   else 
					player->GetSession()->SendAreaTriggerMessage("您的金钱不足,请攒够后使用");
					player->CLOSE_GOSSIP_MENU();
                   }
				   else 
				   {
				   player->GetSession()->SendAreaTriggerMessage("您的等级太低,无法使用");
				   player->CLOSE_GOSSIP_MENU();
				   }
                   break;
              // ·[60] 黑石塔
              case GOSSIP_ACTION_INFO_DEF + 10 :
                   uint32 Level30; //申明角色等级变量
                   Level30 = 60;   //给变量赋值
                   if (player->getLevel()  >= Level30)
                   {
				   if (player->GetMoney() >= price1) 
				   {
				   player->ModifyMoney(-int32(price1));
                   player->TeleportTo(229,78.19,-227.63,49.72,0);
				   player->CLOSE_GOSSIP_MENU();
				   }
				   else 
					player->GetSession()->SendAreaTriggerMessage("您的金钱不足,请攒够后使用");
					player->CLOSE_GOSSIP_MENU();
                   }
				   else 
				   {
				   player->GetSession()->SendAreaTriggerMessage("您的等级太低,无法使用");
				   player->CLOSE_GOSSIP_MENU();
				   }
                   break;
                 //返回
              case GOSSIP_ACTION_INFO_DEF + 11 :
				   GossipHello_Item(player, _Item,targets);
                   break;
                        }
    break;

        // 高级副本
    case 8:
		uint32 price2;
		price2 = 100000;
        switch(action) {
              // ·[团] 溶火之心 统一格式说明：(MapID, X, Y, Z, 0);
              case GOSSIP_ACTION_INFO_DEF + 1 :
                   uint32 Level20; //申明角色等级变量
                   Level20 = 60;   //给变量赋值
                   if (player->getLevel()  >= Level20)
                   {
				   if (player->GetMoney() >= price2) 
				   {
					player->ModifyMoney(-int32(price2));
                   player->TeleportTo(409,1089.601685,-470.190247,-106.413055,0);
				   player->CLOSE_GOSSIP_MENU();
                   }
				   	else 
					player->GetSession()->SendAreaTriggerMessage("您的金钱不足,请攒够后使用");
					player->CLOSE_GOSSIP_MENU();
                   }
				   else 
				   {
				   player->GetSession()->SendAreaTriggerMessage("您的等级太低,无法使用");
				   player->CLOSE_GOSSIP_MENU();
				   }
                   break;
              // ·[团] 黑石塔上
              case GOSSIP_ACTION_INFO_DEF + 2 :
                   uint32 Level21; //申明角色等级变量
                   Level21 = 60;   //给变量赋值
                   if (player->getLevel()  >= Level21)
                   {
				   if (player->GetMoney() >= price2) 
				   {
					player->ModifyMoney(-int32(price2));
                   player->TeleportTo(229,78.339836,-227.793518,49.7103,0);
				   player->CLOSE_GOSSIP_MENU();
                   }
				   	else 
					player->GetSession()->SendAreaTriggerMessage("您的金钱不足,请攒够后使用");
					player->CLOSE_GOSSIP_MENU();
                   }
				   else 
				   {
				   player->GetSession()->SendAreaTriggerMessage("您的等级太低,无法使用");
				   player->CLOSE_GOSSIP_MENU();
				   }
                   break;
              // ·[团] 祖尔格拉布
              case GOSSIP_ACTION_INFO_DEF + 3 :
                   uint32 Level22; //申明角色等级变量
                   Level22 = 60;   //给变量赋值
                   if (player->getLevel()  >= Level22)
                   {
				   if (player->GetMoney() >= price2) 
				   {
					player->ModifyMoney(-int32(price2));
                   player->TeleportTo(309,-11916,-1251.469971,92.32,0);
				   player->CLOSE_GOSSIP_MENU();
                   }
				   	else 
					player->GetSession()->SendAreaTriggerMessage("您的金钱不足,请攒够后使用");
					player->CLOSE_GOSSIP_MENU();
                   }
				   else 
				   {
				   player->GetSession()->SendAreaTriggerMessage("您的等级太低,无法使用");
				   player->CLOSE_GOSSIP_MENU();
				   }
                   break;
              // ·[团] 黑翼之巢
              case GOSSIP_ACTION_INFO_DEF + 4 :
                   uint32 Level23; //申明角色等级变量
                   Level23 = 60;   //给变量赋值
                   if (player->getLevel()  >= Level23)
                   {
				   if (player->GetMoney() >= price2) 
				   {
					player->ModifyMoney(-int32(price2));
                   player->TeleportTo(469,-7674.470215,-1108.380005,396.649994,0);
				   player->CLOSE_GOSSIP_MENU();
                   }
				   	else 
					player->GetSession()->SendAreaTriggerMessage("您的金钱不足,请攒够后使用");
					player->CLOSE_GOSSIP_MENU();
                   }
				   else 
				   {
				   player->GetSession()->SendAreaTriggerMessage("您的等级太低,无法使用");
				   player->CLOSE_GOSSIP_MENU();
				   }
                   break;
              // ·[团] 安其拉
              case GOSSIP_ACTION_INFO_DEF + 5 :
                   uint32 Level24; //申明角色等级变量
                   Level24 = 60;   //给变量赋值
                   if (player->getLevel()  >= Level24)
                   {
				   if (player->GetMoney() >= price2) 
				   {
					player->ModifyMoney(-int32(price2));
                   player->TeleportTo(531,-8212.002930,2034.474854,129.141342,0);
				   player->CLOSE_GOSSIP_MENU();
                   }
				   	else 
					player->GetSession()->SendAreaTriggerMessage("您的金钱不足,请攒够后使用");
					player->CLOSE_GOSSIP_MENU();
                   }
				   else 
				   {
				   player->GetSession()->SendAreaTriggerMessage("您的等级太低,无法使用");
				   player->CLOSE_GOSSIP_MENU();
				   }
                   break;
              // ·[团] 安其拉废墟
              case GOSSIP_ACTION_INFO_DEF + 6 :
                   uint32 Level25; //申明角色等级变量
                   Level25 = 60;   //给变量赋值
                   if (player->getLevel()  >= Level25)
                   {
				   if (player->GetMoney() >= price2) 
				   {
					player->ModifyMoney(-int32(price2));
                   player->TeleportTo(509,-8443.475586,1518.648560,31.906958,0);
				   player->CLOSE_GOSSIP_MENU();
                   }
				   	else 
					player->GetSession()->SendAreaTriggerMessage("您的金钱不足,请攒够后使用");
					player->CLOSE_GOSSIP_MENU();
                   }
				   else 
				   {
				   player->GetSession()->SendAreaTriggerMessage("您的等级太低,无法使用");
				   player->CLOSE_GOSSIP_MENU();
				   }
                   break;
              // ·[团] 奥妮克希亚的巢穴
              case GOSSIP_ACTION_INFO_DEF + 7 :
                   uint32 Level26; //申明角色等级变量
                   Level26 = 60;   //给变量赋值
                   if (player->getLevel()  >= Level26)
                   {
				   if (player->GetMoney() >= price2) 
				   {
					player->ModifyMoney(-int32(price2));
                   player->TeleportTo(249,30.010290,-58.840508,-5.325367,0);
				   player->CLOSE_GOSSIP_MENU();
                   }
				   	else 
					player->GetSession()->SendAreaTriggerMessage("您的金钱不足,请攒够后使用");
					player->CLOSE_GOSSIP_MENU();
                   }
				   else 
				   {
				   player->GetSession()->SendAreaTriggerMessage("您的等级太低,无法使用");
				   player->CLOSE_GOSSIP_MENU();
				   }
                   break;
	      // ·[团] 纳克萨玛斯
              case GOSSIP_ACTION_INFO_DEF + 8 :
                   uint32 Level27; //申明角色等级变量
                   Level27 = 60;   //给变量赋值
                   if (player->getLevel()  >= Level27)
                   {
				   if (player->GetMoney() >= price2) 
				   {
					player->ModifyMoney(-int32(price2));
                   player->TeleportTo(533,3005.87,-3435.01,293.882,0);
				   player->CLOSE_GOSSIP_MENU();
                   }
				   	else 
					player->GetSession()->SendAreaTriggerMessage("您的金钱不足,请攒够后使用");
					player->CLOSE_GOSSIP_MENU();
                   }
				   else 
				   {
				   player->GetSession()->SendAreaTriggerMessage("您的等级太低,无法使用");
				   player->CLOSE_GOSSIP_MENU();
				   }
                   break;
	      // ·[团] 纳克萨玛斯第二层
              case GOSSIP_ACTION_INFO_DEF + 9 :
                   uint32 Level28; //申明角色等级变量
                   Level28 = 60;   //给变量赋值
                   if (player->getLevel()  >= Level28)
                   {
				   if (player->GetMoney() >= price2) 
				   {
					player->ModifyMoney(-int32(price2));
                   player->TeleportTo(533,3700.35,-5185.92,143.957,4.403038,0);
				   player->CLOSE_GOSSIP_MENU();
                   }
				   	else 
					player->GetSession()->SendAreaTriggerMessage("您的金钱不足,请攒够后使用");
					player->CLOSE_GOSSIP_MENU();
                   }
				   else 
				   {
				   player->GetSession()->SendAreaTriggerMessage("您的等级太低,无法使用");
				   player->CLOSE_GOSSIP_MENU();
				   }
                   break;
           //返回
              case GOSSIP_ACTION_INFO_DEF + 10 :
				   GossipHello_Item(player, _Item,targets);
                   break;
                        }
    break;
		// 风景传送
		case 10 :
            uint32 price_4;
			price_4 = 100000;
			switch(action) {
				//海加尔山 统一格式说明：(MapID, X, Y, Z, 0);
				case GOSSIP_ACTION_INFO_DEF + 1 :
					if (player->GetMoney() >= price_4) 
					{
					player->ModifyMoney(-int32(price_4));
					player->TeleportTo(1,4603.946777,-3879.250977,944.183472,1);
					player->CLOSE_GOSSIP_MENU();
					}
					else 
					player->GetSession()->SendAreaTriggerMessage("您的金钱不足,请攒够后使用");
					player->CLOSE_GOSSIP_MENU();
					break;
				//翡翠圣地 统一格式说明：(MapID, X, Y, Z, 0);
				case GOSSIP_ACTION_INFO_DEF + 2 :
					if (player->GetMoney() >= price_4) 
					{
					player->ModifyMoney(-int32(price_4));
					player->TeleportTo(1,3968.264648,-1290.036011,240.326889,5.927989);
					player->CLOSE_GOSSIP_MENU();
					}
					else 
					player->GetSession()->SendAreaTriggerMessage("您的金钱不足,请攒够后使用");
					player->CLOSE_GOSSIP_MENU();
					break;
				//时光之穴 统一格式说明：(MapID, X, Y, Z, 0);
				case GOSSIP_ACTION_INFO_DEF + 3 :
					if (player->GetMoney() >= price_4) 
					{
					player->ModifyMoney(-int32(price_4));
					player->TeleportTo(1,-8173.930176,-4737.463867,33.777351,4.772119);
					player->CLOSE_GOSSIP_MENU();
					}
					else 
					player->GetSession()->SendAreaTriggerMessage("您的金钱不足,请攒够后使用");
					player->CLOSE_GOSSIP_MENU();
					break;
				//黑暗之门 统一格式说明：(MapID, X, Y, Z, 0);
				case GOSSIP_ACTION_INFO_DEF + 4 :
					if (player->GetMoney() >= price_4) 
					{
					player->ModifyMoney(-int32(price_4));
					player->TeleportTo(0,-11849.031250,-3201.170654,-28.885090,3.280838);
					player->CLOSE_GOSSIP_MENU();
					}
					else 
					player->GetSession()->SendAreaTriggerMessage("您的金钱不足,请攒够后使用");
					player->CLOSE_GOSSIP_MENU();
					break;
				//双塔山 统一格式说明：(MapID, X, Y, Z, 0);
				case GOSSIP_ACTION_INFO_DEF + 5 :
					if (player->GetMoney() >= price_4) 
					{
					player->ModifyMoney(-int32(price_4));
					player->TeleportTo(1,-3331.353271,2225.728271,30.987701,6.267522);
					player->CLOSE_GOSSIP_MENU();
					}
					else 
					player->GetSession()->SendAreaTriggerMessage("您的金钱不足,请攒够后使用");
					player->CLOSE_GOSSIP_MENU();
					break;
				//梦境之树 统一格式说明：(MapID, X, Y, Z, 0);
				case GOSSIP_ACTION_INFO_DEF + 6 :
					if (player->GetMoney() >= price_4) 
					{
					player->ModifyMoney(-int32(price_4));
					player->TeleportTo(1,-2914.756104,1902.199341,34.741035,5.690404);
					player->CLOSE_GOSSIP_MENU();
					}
					else 
					player->GetSession()->SendAreaTriggerMessage("您的金钱不足,请攒够后使用");
					player->CLOSE_GOSSIP_MENU();
					break;
				//GM之岛 统一格式说明：(MapID, X, Y, Z, 0);
				case GOSSIP_ACTION_INFO_DEF + 7 :
					if (player->GetMoney() >= price_4) 
					{
					player->ModifyMoney(-int32(price_4));
					player->TeleportTo(1, 16222.1 ,16252.1,12.5872,1);
					player->CLOSE_GOSSIP_MENU();
					}
					else 
					player->GetSession()->SendAreaTriggerMessage("您的金钱不足,请攒够后使用");
					player->CLOSE_GOSSIP_MENU();
					break;
				//暴雪建设公司路障 统一格式说明：(MapID, X, Y, Z, 0);
				case GOSSIP_ACTION_INFO_DEF + 8 :
					if (player->GetMoney() >= price_4) 
					{
					player->ModifyMoney(-int32(price_4));
					player->TeleportTo(1,5478.060059,-3730.850098,1593.439941,5.610376);
					player->CLOSE_GOSSIP_MENU();
					}
					else 
					player->GetSession()->SendAreaTriggerMessage("您的金钱不足,请攒够后使用");
					player->CLOSE_GOSSIP_MENU();
					break;
				//天涯海滩 统一格式说明：(MapID, X, Y, Z, 0);
				case GOSSIP_ACTION_INFO_DEF + 9 :
					if (player->GetMoney() >= price_4) 
					{
					player->ModifyMoney(-int32(price_4));
					player->TeleportTo(1,-9851.617188,-3608.474121,8.939731,2.513388);
					player->CLOSE_GOSSIP_MENU();
					}
					else 
					player->GetSession()->SendAreaTriggerMessage("您的金钱不足,请攒够后使用");
					player->CLOSE_GOSSIP_MENU();
					break;
				//安戈洛环形山 统一格式说明：(MapID, X, Y, Z, 0);
				case GOSSIP_ACTION_INFO_DEF + 10 :
					if (player->GetMoney() >= price_4) 
					{
					player->ModifyMoney(-int32(price_4));
					player->TeleportTo(1,-8562.096680,-2106.056641,8.852538,0.090425);
					player->CLOSE_GOSSIP_MENU();
					}
					else 
					player->GetSession()->SendAreaTriggerMessage("您的金钱不足,请攒够后使用");
					player->CLOSE_GOSSIP_MENU();
					break;
				//比吉尔的飞艇残骸 统一格式说明：(MapID, X, Y, Z, 0);
				case GOSSIP_ACTION_INFO_DEF + 11 :
					if (player->GetMoney() >= price_4) 
					{
					player->ModifyMoney(-int32(price_4));
					player->TeleportTo(1,-4014.003418,-3768.186523,42.123295,5.220697);
					player->CLOSE_GOSSIP_MENU();
					}
					else 
					player->GetSession()->SendAreaTriggerMessage("您的金钱不足,请攒够后使用");
					player->CLOSE_GOSSIP_MENU();
					break;
				//石堡瀑布 统一格式说明：(MapID, X, Y, Z, 0);
				case GOSSIP_ACTION_INFO_DEF + 12 :
					if (player->GetMoney() >= price_4) 
					{
					player->ModifyMoney(-int32(price_4));
					player->TeleportTo(0,-9481.493164,-3326.915283,8.864347,0.846896);
					player->CLOSE_GOSSIP_MENU();
					}
					else 
					player->GetSession()->SendAreaTriggerMessage("您的金钱不足,请攒够后使用");
					player->CLOSE_GOSSIP_MENU();
					break;
				//地铁海底
				case GOSSIP_ACTION_INFO_DEF + 13 :
					if (player->GetMoney() >= price_4) 
					{
					player->ModifyMoney(-int32(price_4));
					player->TeleportTo(369, -9.96166,1238.17,-126.102,0);
					player->CLOSE_GOSSIP_MENU();
					}
					else 
					player->GetSession()->SendAreaTriggerMessage("您的金钱不足,请攒够后使用");
					player->CLOSE_GOSSIP_MENU();
					break;

				//卡拉赞
				/*case GOSSIP_ACTION_INFO_DEF + 15 :
					if (player->GetMoney() >= price_4) 
					{
					player->ModifyMoney(-int32(price_4));
					player->TeleportTo(0, 11037.7 ,1999.49, 92.9823 ,0);
					}
					else player->SEND_GOSSIP_MENU(99997,_Item->GetGUID());
					break;*/
                 //返回
               case GOSSIP_ACTION_INFO_DEF + 16 :
					GossipHello_Item(player, _Item,targets);
                    break;
			}
			break;
		// 宝石商店
		/*case 9 :
			switch(action) {
				case GOSSIP_ACTION_INFO_DEF + 1 : //T1销售店
                    player->GetSession()->ReadShop(_Item->GetGUID(),15);
					break;
				case GOSSIP_ACTION_INFO_DEF + 2 : //T2销售店
                    player->GetSession()->ReadShop(_Item->GetGUID(),16);
					break;
				case GOSSIP_ACTION_INFO_DEF + 3 : //T3销售店
                    player->GetSession()->ReadShop(_Item->GetGUID(),17);
					break;
				case GOSSIP_ACTION_INFO_DEF + 4 ://附魔材料
                    player->GetSession()->ReadShop(_Item->GetGUID(),18);
					break;
				case GOSSIP_ACTION_INFO_DEF + 5 : //药材出售
                    player->GetSession()->ReadShop(_Item->GetGUID(),19);
					break;
				case GOSSIP_ACTION_INFO_DEF + 6 : //铸造材料
                    player->GetSession()->ReadShop(_Item->GetGUID(),20);
					break;
				case GOSSIP_ACTION_INFO_DEF + 7 : //座骑出售
                    player->GetSession()->ReadShop(_Item->GetGUID(),21);
					break;
				case GOSSIP_ACTION_INFO_DEF + 8 : //内衣出售
                    player->GetSession()->ReadShop(_Item->GetGUID(),22);
					break;
                case GOSSIP_ACTION_INFO_DEF + 9 : //返回
					 GossipHello_Item(player, _Item);
                     break;
			}
			break;*/
        // 技能学习
   /* case 8:
        switch(action) {
              case GOSSIP_ACTION_INFO_DEF + 1 :
                  player->CastSpell(player,7109 ,true);  //板甲
				  player->CLOSE_GOSSIP_MENU();
	              break;
              case GOSSIP_ACTION_INFO_DEF + 2 :
                  uint32 Level31; //申明角色等级变量
                  Level31 = 20;   //给变量赋值
                  if (player->getLevel()  >= Level31)
			      {
                  player->CastSpell(player,8616 ,true); //狂暴姿态
				  player->CLOSE_GOSSIP_MENU();
			      }
				  else 
				  {
				  player->SEND_GOSSIP_MENU(100000101,_Item->GetGUID());
				  }
	              break;
              case GOSSIP_ACTION_INFO_DEF + 3 :
                  uint32 Level32; //申明角色等级变量
                  Level32 = 20;   //给变量赋值
                  if (player->getLevel()  >= Level32)
			      {
                  player->CastSpell(player,8121 ,true);//防御姿态,破甲攻击
				  player->CLOSE_GOSSIP_MENU();
			      }
				  else 
				  {
				  player->SEND_GOSSIP_MENU(100000101,_Item->GetGUID());
				  }
	              break;
              case GOSSIP_ACTION_INFO_DEF + 4 :
                  player->CastSpell(player,1579 ,true); //驯服野兽
				  player->CLOSE_GOSSIP_MENU();
	              break;
              case GOSSIP_ACTION_INFO_DEF + 5 :
                  player->CastSpell(player,1584 ,true); //喂养野兽
				  player->CLOSE_GOSSIP_MENU();
	              break;
		               }
   break;
        } */
	case 2 :
		switch(action) {
			case GOSSIP_ACTION_INFO_DEF +1 ://战歌峡谷
                  if(player->getRace() == 1 || player->getRace() == 3 || player->getRace() == 4 || player->getRace() == 7 || player->getRace() == 11) //判断是否联盟
				{
				 //player->TeleportTo(1,1036.794800,-2106.138672,122.945526,0);
					player->TeleportTo(489,1523.260010,1480.839966,352.013336,3.222604);
				}
				else
				{
					player->TeleportTo(489,929.166199,1432.885986,345.535767,0.048814);
				}
				 player->CLOSE_GOSSIP_MENU();
                break;
			case GOSSIP_ACTION_INFO_DEF + 2 ://阿拉希盆地
				if(player->getRace() == 1 || player->getRace() == 3 || player->getRace() == 4 || player->getRace() == 7 || player->getRace() == 11) //判断是否联盟
				{
				 //player->TeleportTo(0,-847.953491,-3519.764893,72.607727,0);
					player->TeleportTo(529,1313.914063,1287.222046,-13.325586,3.818803);
				}
				else
				{
					player->TeleportTo(529,673.071167,709.182800,-15.176502,0.99);
				}
				 player->CLOSE_GOSSIP_MENU();
                break;
			case GOSSIP_ACTION_INFO_DEF + 3 ://奥特兰克山谷
				if(player->getRace() == 1 || player->getRace() == 3 || player->getRace() == 4 || player->getRace() == 7 || player->getRace() == 11) //判断是否联盟
				{
				 //player->TeleportTo(0,392.483002,-977.000000,110.072998,0);
					player->TeleportTo(30,775.339111,-493.310577,99.077736,2.901615);
				}
				else
				{
					player->TeleportTo(30,-1190.994629,-283.090942,73.171547,1.301511);
				}
				 player->CLOSE_GOSSIP_MENU();
                break;
			case GOSSIP_ACTION_INFO_DEF + 4 ://古拉巴什竞技场
				 player->TeleportTo(0,-13225.715820,233.165405,33.344490,0);
				 player->CLOSE_GOSSIP_MENU();
                break;
            case GOSSIP_ACTION_INFO_DEF + 5 : //返回
				GossipHello_Item(player, _Item,targets);
                break;
		}
		break;
//野外BOSS
    case 9 :
	uint32 price_flags4; 
	price_flags4 = 100000; //收10G的钱 
     
    switch(action) {
            // 暮色森林 统一格式说明：(MapID, X, Y, Z, 0); 
            case GOSSIP_ACTION_INFO_DEF + 1 : 
				if (player->GetMoney() >= price_flags4) 
				{
				player->ModifyMoney(-int32(price_flags4));
                player->TeleportTo(0,-10526.168945,-434.996796,50.894821,0);
				player->CLOSE_GOSSIP_MENU();
				}
				else 
					player->GetSession()->SendAreaTriggerMessage("您的金钱不足,请攒够后使用");
					player->CLOSE_GOSSIP_MENU();
	            break;

            // 辛特兰 
            case GOSSIP_ACTION_INFO_DEF + 2 : 
				if (player->GetMoney() >= price_flags4) 
				{
				player->ModifyMoney(-int32(price_flags4));
                player->TeleportTo(0,759.605713,-3893.341309,116.475304,0);
				player->CLOSE_GOSSIP_MENU();
					} 
				else 
					player->GetSession()->SendAreaTriggerMessage("您的金钱不足,请攒够后使用");
					player->CLOSE_GOSSIP_MENU();
                break; 
            // 灰谷 
            case GOSSIP_ACTION_INFO_DEF + 3 :
				if (player->GetMoney() >= price_flags4) 
				{
				player->ModifyMoney(-int32(price_flags4));
                player->TeleportTo(1,3120.289307,-3439.444336,139.566345,1);
				player->CLOSE_GOSSIP_MENU();
				}
				else 
					player->GetSession()->SendAreaTriggerMessage("您的金钱不足,请攒够后使用");
					player->CLOSE_GOSSIP_MENU();
                break; 
            // 艾萨拉 
            case GOSSIP_ACTION_INFO_DEF + 4 : 
				if (player->GetMoney() >= price_flags4) 
				{
				player->ModifyMoney(-int32(price_flags4));
                player->TeleportTo(1,2622.219971,-5977.930176,100.562897,1);
				player->CLOSE_GOSSIP_MENU();
				}
				else 
					player->GetSession()->SendAreaTriggerMessage("您的金钱不足,请攒够后使用");
					player->CLOSE_GOSSIP_MENU();
                break; 
            // 菲拉斯 
            case GOSSIP_ACTION_INFO_DEF + 5 :
				if (player->GetMoney() >= price_flags4) 
				{
				player->ModifyMoney(-int32(price_flags4));
                player->TeleportTo(1,-2741.290039,2009.481323,31.877323,1);
				player->CLOSE_GOSSIP_MENU();
				}
				else 
					player->GetSession()->SendAreaTriggerMessage("您的金钱不足,请攒够后使用");
					player->CLOSE_GOSSIP_MENU();
                break; 
            // 诅咒之地 
            case GOSSIP_ACTION_INFO_DEF + 6 : 
				if (player->GetMoney() >= price_flags4) 
				{
				player->ModifyMoney(-int32(price_flags4));
                player->TeleportTo(0,-12234.000000,-2474.000000,-3.000000,0);
				player->CLOSE_GOSSIP_MENU();
				}
				else 
					player->GetSession()->SendAreaTriggerMessage("您的金钱不足,请攒够后使用");
					player->CLOSE_GOSSIP_MENU();
                break; 
            //水晶谷 
            case GOSSIP_ACTION_INFO_DEF + 7 : 
				if (player->GetMoney() >= price_flags4) 
				{
				player->ModifyMoney(-int32(price_flags4));
                player->TeleportTo(1,-6292.463379,1578.029053,0.155348,1);
				player->CLOSE_GOSSIP_MENU();
				}
				else 
					player->GetSession()->SendAreaTriggerMessage("您的金钱不足,请攒够后使用");
					player->CLOSE_GOSSIP_MENU();
                break;
                 //返回
               case GOSSIP_ACTION_INFO_DEF + 8 :
					GossipHello_Item(player, _Item,targets);
                    break;
			}
			break;


//外域风景         				
	case 12 :
	uint32 price_flags5; 
	price_flags5 = 50000; //收5G的钱     
		switch(action) {
		// 黑暗之门 统一格式说明：(MapID, X, Y, Z, 0);
		case GOSSIP_ACTION_INFO_DEF + 1 :
		if (player->GetMoney() >= price_flags5) 
		{ 
		player->ModifyMoney(-int32(price_flags5));
		player->TeleportTo(530,-246.600006,946.000000,84.400002,0);
		player->CLOSE_GOSSIP_MENU();
		}
		else 
		player->GetSession()->SendAreaTriggerMessage("您的金钱不足,请攒够后使用");
		player->CLOSE_GOSSIP_MENU();
		break;
		// 永歌森林
		case GOSSIP_ACTION_INFO_DEF + 2 :
		if (player->GetMoney() >= price_flags5) 
		{ 
		player->ModifyMoney(-int32(price_flags5));
		player->TeleportTo(530,-632.21,2568.3,79.48,2.82);
		player->CLOSE_GOSSIP_MENU();
		}
		else 
		player->GetSession()->SendAreaTriggerMessage("您的金钱不足,请攒够后使用");
		player->CLOSE_GOSSIP_MENU();
		break;
		// 艾克索达
		case GOSSIP_ACTION_INFO_DEF + 3 :
		if (player->GetMoney() >= price_flags5) 
		{ 
		player->ModifyMoney(-int32(price_flags5));
		player->TeleportTo(530,9.78,2654.22,72.33,0.37);
		player->CLOSE_GOSSIP_MENU();
		}
		else 
		player->GetSession()->SendAreaTriggerMessage("您的金钱不足,请攒够后使用");
		player->CLOSE_GOSSIP_MENU();
		break;
		// 海加尔山
		case GOSSIP_ACTION_INFO_DEF + 4 :
		if (player->GetMoney() >= price_flags5) 
		{ 
		player->ModifyMoney(-int32(price_flags5));
		player->TeleportTo(534,5070.084473,-1791.984497,1320.995483,0);
		player->CLOSE_GOSSIP_MENU();
		}
		else 
		player->GetSession()->SendAreaTriggerMessage("您的金钱不足,请攒够后使用");
		player->CLOSE_GOSSIP_MENU();
		break;
		// 青草平原
		case GOSSIP_ACTION_INFO_DEF + 5 :
		if (player->GetMoney() >= price_flags5) 
		{ 
		player->ModifyMoney(-int32(price_flags5));
		player->TeleportTo(530,-229.28,5410.53,22.20,1.18);
		player->CLOSE_GOSSIP_MENU();
		}
		else 
		player->GetSession()->SendAreaTriggerMessage("您的金钱不足,请攒够后使用");
		player->CLOSE_GOSSIP_MENU();
		break;
		// 翠叶森林
		case GOSSIP_ACTION_INFO_DEF + 6 :
		if (player->GetMoney() >= price_flags5) 
		{ 
		player->ModifyMoney(-int32(price_flags5));
		player->TeleportTo(530,-3589.60,302.39,40.45,4.63);
		player->CLOSE_GOSSIP_MENU();
		}
		else 
		player->GetSession()->SendAreaTriggerMessage("您的金钱不足,请攒够后使用");
		player->CLOSE_GOSSIP_MENU();
		break;
		// 沙塔斯城
		case GOSSIP_ACTION_INFO_DEF + 7 :
		if (player->GetMoney() >= price_flags5) 
		{ 
		player->ModifyMoney(-int32(price_flags5));
		player->TeleportTo(530,-1889,5433,-11,0);
		player->CLOSE_GOSSIP_MENU();
		}
		else 
		player->GetSession()->SendAreaTriggerMessage("您的金钱不足,请攒够后使用");
		player->CLOSE_GOSSIP_MENU();
		break;
		// 哈兰
		case GOSSIP_ACTION_INFO_DEF + 8 :
		if (player->GetMoney() >= price_flags5) 
		{ 
		player->ModifyMoney(-int32(price_flags5));			
		player->TeleportTo(530,-1567,7959,-21,0);
		player->CLOSE_GOSSIP_MENU();
		}
		else 
		player->GetSession()->SendAreaTriggerMessage("您的金钱不足,请攒够后使用");
		player->CLOSE_GOSSIP_MENU();
		break;
		// 风暴尖塔
		case GOSSIP_ACTION_INFO_DEF + 9 :
		if (player->GetMoney() >= price_flags5) 
		{
		player->ModifyMoney(-int32(price_flags5));
		player->TeleportTo(530,4151,3041,339,0);
		player->CLOSE_GOSSIP_MENU();
		}
		else 
		player->GetSession()->SendAreaTriggerMessage("您的金钱不足,请攒够后使用");
		player->CLOSE_GOSSIP_MENU();
		break;
        //返回
        case GOSSIP_ACTION_INFO_DEF + 10 :
        GossipHello_Item(player, _Item,targets);
        break;
	}
	break;
//外域团队副本
	case 14: 
	uint32 price_flags1; 
	price_flags1 = 100000; //收50G的钱 

				switch(action) {
			// 暴风城超级监狱 统一格式说明：(MapID, X, Y, Z, 0);
			case GOSSIP_ACTION_INFO_DEF + 1 :
			if (player->GetMoney() >= price_flags1) 
				{ 
				player->ModifyMoney(-int32(price_flags1));
				player->TeleportTo(0,-8644.160156,595.669983,95.699997,0);
				player->CLOSE_GOSSIP_MENU();
				}
			else 
				player->GetSession()->SendAreaTriggerMessage("您的金钱不足,请攒够后使用");
				player->CLOSE_GOSSIP_MENU();
			break;
			// 遗忘之井
			case GOSSIP_ACTION_INFO_DEF + 2 :
			if (player->GetMoney() >= price_flags1) 
				{ 
				player->ModifyMoney(-int32(price_flags1));
				player->TeleportTo(0, -11068.07313, -1811.069946, 52.820000, 0);
				player->CLOSE_GOSSIP_MENU();
				}
			else 
				player->GetSession()->SendAreaTriggerMessage("您的金钱不足,请攒够后使用");
				player->CLOSE_GOSSIP_MENU();
			break;
			// 鬼魂之地
			case GOSSIP_ACTION_INFO_DEF + 3 :
			if (player->GetMoney() >= price_flags1) 
				{ 
				player->ModifyMoney(-int32(price_flags1));
				player->TeleportTo(530, 6851.197266, -7993.672852, 192.292496, 0);
				player->CLOSE_GOSSIP_MENU();
				}
			else 
				player->GetSession()->SendAreaTriggerMessage("您的金钱不足,请攒够后使用");
				player->CLOSE_GOSSIP_MENU();
			break;
			// 卡拉赞
			case GOSSIP_ACTION_INFO_DEF + 4 :
			if (player->GetMoney() >= price_flags1) 
				{ 
				player->ModifyMoney(-int32(price_flags1));
				player->TeleportTo(0,-11108.200195,-2027.520020,47.070000, 0);
				player->CLOSE_GOSSIP_MENU();
				}
			else 
				player->GetSession()->SendAreaTriggerMessage("您的金钱不足,请攒够后使用");
				player->CLOSE_GOSSIP_MENU();
			break;
			// 风暴要塞 
			case GOSSIP_ACTION_INFO_DEF + 5 :
			if (player->GetMoney() >= price_flags1) 
				{ 
				player->ModifyMoney(-int32(price_flags1));
				player->TeleportTo(530, 3087.556885, 1387.229980, 185.037415,0);
				player->CLOSE_GOSSIP_MENU();
				}
			else 
				player->GetSession()->SendAreaTriggerMessage("您的金钱不足,请攒够后使用");
				player->CLOSE_GOSSIP_MENU();
			break;
			// 凤凰大厅
			case GOSSIP_ACTION_INFO_DEF + 6 :
			if (player->GetMoney() >= price_flags1) 
				{
				player->ModifyMoney(-int32(price_flags1));
				player->TeleportTo(550, -6.800000, -0.900000, -2.400000, 0);
				player->CLOSE_GOSSIP_MENU();
				}
			else 
				player->GetSession()->SendAreaTriggerMessage("您的金钱不足,请攒够后使用");
				player->CLOSE_GOSSIP_MENU();
			break;
			// 黑暗神庙 
			case GOSSIP_ACTION_INFO_DEF + 7 :
			if (player->GetMoney() >= price_flags1) 
				{ 
				player->ModifyMoney(-int32(price_flags1));
				player->TeleportTo(564,100.47,1001.83,-86.5,6.15);
				player->CLOSE_GOSSIP_MENU();
				}
			else 
				player->GetSession()->SendAreaTriggerMessage("您的金钱不足,请攒够后使用");
				player->CLOSE_GOSSIP_MENU();
			break;
			// 赞格沼泽 
			case GOSSIP_ACTION_INFO_DEF + 8 :
			if (player->GetMoney() >= price_flags1) 
				{ 
				player->ModifyMoney(-int32(price_flags1));
				player->TeleportTo(530, 919.007629, 6854.861816, -66.432899, 0);
				player->CLOSE_GOSSIP_MENU();
				}
			else 
				player->GetSession()->SendAreaTriggerMessage("您的金钱不足,请攒够后使用");
				player->CLOSE_GOSSIP_MENU();
			break;
			// 毒牙神殿
			case GOSSIP_ACTION_INFO_DEF + 9 :
			if (player->GetMoney() >= price_flags1) 
				{
				player->ModifyMoney(-int32(price_flags1));
				//player->TeleportTo(546, 14.913731, -19.914341, -2.755679, 0);
				player->TeleportTo(548, -59, -110, 20, 0);
				player->CLOSE_GOSSIP_MENU();
				}
			else 
				player->GetSession()->SendAreaTriggerMessage("您的金钱不足,请攒够后使用");
				player->CLOSE_GOSSIP_MENU();
			break;
			// 戈鲁尔之巢 
			case GOSSIP_ACTION_INFO_DEF + 10 :
			if (player->GetMoney() >= price_flags1) 
				{ 
				player->ModifyMoney(-int32(price_flags1));
				player->TeleportTo(530, 3543.437012, 5079.009766, 0.952552, 0);
				player->CLOSE_GOSSIP_MENU();
				}
			else 
				player->GetSession()->SendAreaTriggerMessage("您的金钱不足,请攒够后使用");
				player->CLOSE_GOSSIP_MENU();
			break;
			// 玛瑟里顿的巢穴
			case GOSSIP_ACTION_INFO_DEF + 11 :
			if (player->GetMoney() >= price_flags1) 
				{ 
				player->ModifyMoney(-int32(price_flags1));
				player->TeleportTo(544, 188.414261, 29.327892, 67.934464, 0);
				player->CLOSE_GOSSIP_MENU();
				}
			else 
				player->GetSession()->SendAreaTriggerMessage("您的金钱不足,请攒够后使用");
				player->CLOSE_GOSSIP_MENU();
			break;
        //返回
			case GOSSIP_ACTION_INFO_DEF + 12 :
			GossipHello_Item(player, _Item,targets);
			break;
	}
	break;
	//外域五人副本
	case 13 :  
	uint32 price_flags2; 
	price_flags2 = 100000; //收50G的钱   
			switch(action) {
			// 血熔炉 统一格式说明：(MapID, X, Y, Z, 0);
			case GOSSIP_ACTION_INFO_DEF + 1 :
			if (player->GetMoney() >= price_flags2) 
				{
				player->ModifyMoney(-int32(price_flags2));
				player->TeleportTo(542, -3.000000, 11.000000, -45.000000, 0);
				player->CLOSE_GOSSIP_MENU();
				}
			else 
				player->GetSession()->SendAreaTriggerMessage("您的金钱不足,请攒够后使用");
				player->CLOSE_GOSSIP_MENU();
			break;
			// 破碎大厅 
			case GOSSIP_ACTION_INFO_DEF + 2 :
			if (player->GetMoney() >= price_flags2) 
				{
				player->ModifyMoney(-int32(price_flags2));
				player->TeleportTo(540, -41.000000, -22.000000, -14.000000, 0);
				player->CLOSE_GOSSIP_MENU();
				}
			else 
				player->GetSession()->SendAreaTriggerMessage("您的金钱不足,请攒够后使用");
				player->CLOSE_GOSSIP_MENU();
			break;
			// 地狱火堡垒
			case GOSSIP_ACTION_INFO_DEF + 3 :
			if (player->GetMoney() >= price_flags2) 
				{ 
				player->ModifyMoney(-int32(price_flags2));
				player->TeleportTo(543, -1355.817261, 1646.834595, 68.447365, 0);
				player->CLOSE_GOSSIP_MENU();
				}
			else 
				player->GetSession()->SendAreaTriggerMessage("您的金钱不足,请攒够后使用");
				player->CLOSE_GOSSIP_MENU();
			break;
			// 奴隶监狱
			case GOSSIP_ACTION_INFO_DEF + 4 :
			if (player->GetMoney() >= price_flags2) 
				{
				player->ModifyMoney(-int32(price_flags2));
				player->TeleportTo(547, 123.146225, -122.687210, -0.446336, 0);
				player->CLOSE_GOSSIP_MENU();
				}
			else 
				player->GetSession()->SendAreaTriggerMessage("您的金钱不足,请攒够后使用");
				player->CLOSE_GOSSIP_MENU();
			break;
			// 盘牙洞穴 
			case GOSSIP_ACTION_INFO_DEF + 5 :
			if (player->GetMoney() >= price_flags2) 
				{ 
				player->ModifyMoney(-int32(price_flags2));
				//player->TeleportTo(548, 29.142296, -57.074600, -71.733269, 0);
				player->TeleportTo(546, 14.913731, -19.914341, -2.755679, 0);
				player->CLOSE_GOSSIP_MENU();
				}
			else 
				player->GetSession()->SendAreaTriggerMessage("您的金钱不足,请攒够后使用");
				player->CLOSE_GOSSIP_MENU();
			break;
			// 蒸汽洞窟
			case GOSSIP_ACTION_INFO_DEF + 6 :
			if (player->GetMoney() >= price_flags2) 
				{
				player->ModifyMoney(-int32(price_flags2));
				player->TeleportTo(545, -7.500000, 5.900000, -4.300000, 0);
				player->CLOSE_GOSSIP_MENU();
				}
			else 
				player->GetSession()->SendAreaTriggerMessage("您的金钱不足,请攒够后使用");
				player->CLOSE_GOSSIP_MENU();
			break;
			// 黑色沼泽 
			case GOSSIP_ACTION_INFO_DEF + 7 :
			if (player->GetMoney() >= price_flags2) 
				{ 
				player->ModifyMoney(-int32(price_flags2));
			player->TeleportTo(269, -2095.298584, 7125.536133, 34.588596, 0);
			player->CLOSE_GOSSIP_MENU();
				}
			else 
				player->GetSession()->SendAreaTriggerMessage("您的金钱不足,请攒够后使用");
				player->CLOSE_GOSSIP_MENU();
			break;
			// 波塔尼卡
			case GOSSIP_ACTION_INFO_DEF + 8 :
			if (player->GetMoney() >= price_flags2) 
				{
				player->ModifyMoney(-int32(price_flags2));
				player->TeleportTo(553, 40.000000, -28.600000, -1.100000,0);
				player->CLOSE_GOSSIP_MENU();
				}
			else 
				player->GetSession()->SendAreaTriggerMessage("您的金钱不足,请攒够后使用");
				player->CLOSE_GOSSIP_MENU();
			break;
			// 亚克崔兹
			case GOSSIP_ACTION_INFO_DEF + 9 :
			if (player->GetMoney() >= price_flags2) 
				{
				player->ModifyMoney(-int32(price_flags2));
				player->TeleportTo(552, -1.200000, 0.000000, -0.200000, 0);
				player->CLOSE_GOSSIP_MENU();
				}
			else 
				player->GetSession()->SendAreaTriggerMessage("您的金钱不足,请攒够后使用");
				player->CLOSE_GOSSIP_MENU();
			break;
			// 麦克那尔
			case GOSSIP_ACTION_INFO_DEF + 10 :
			if (player->GetMoney() >= price_flags2) 
				{
				player->ModifyMoney(-int32(price_flags2));
				player->TeleportTo(554, -28.900000, 0.700000, -1.800000, 0);
				player->CLOSE_GOSSIP_MENU();
				}
			else 
				player->GetSession()->SendAreaTriggerMessage("您的金钱不足,请攒够后使用");
				player->CLOSE_GOSSIP_MENU();
			break;
			// 奥金顿 
			case GOSSIP_ACTION_INFO_DEF + 11 :
			if (player->GetMoney() >= price_flags2) 
				{ 
				player->ModifyMoney(-int32(price_flags2));
				player->TeleportTo(555,-0.841954,2.346220,-1.127880,5.940752);
				player->CLOSE_GOSSIP_MENU();
				}
			else 
				player->GetSession()->SendAreaTriggerMessage("您的金钱不足,请攒够后使用");
				player->CLOSE_GOSSIP_MENU();
			break;
			// 塞司克大厅 
			case GOSSIP_ACTION_INFO_DEF + 12 :
			if (player->GetMoney() >= price_flags2) 
				{ 
				player->ModifyMoney(-int32(price_flags2));
				player->TeleportTo(556, -4.681100, -0.093080, -0.006200, 0);
				player->CLOSE_GOSSIP_MENU();
				}
			else 
				player->GetSession()->SendAreaTriggerMessage("您的金钱不足,请攒够后使用");
				player->CLOSE_GOSSIP_MENU();
			break;
			// 法力墓地 
			case GOSSIP_ACTION_INFO_DEF + 13 :
			if (player->GetMoney() >= price_flags2) 
				{ 
				player->ModifyMoney(-int32(price_flags2));
				player->TeleportTo(557, 0.019100, 0.947800, -0.954300, 0);
				player->CLOSE_GOSSIP_MENU();
				}
			else 
				player->GetSession()->SendAreaTriggerMessage("您的金钱不足,请攒够后使用");
				player->CLOSE_GOSSIP_MENU();
			break;
			// 奥金尼地穴
			case GOSSIP_ACTION_INFO_DEF + 14 :
			if (player->GetMoney() >= price_flags2) 
				{ 
				player->ModifyMoney(-int32(price_flags2));
				player->TeleportTo(558, -20.930674, 0.181790, -0.120600, 0);
				player->CLOSE_GOSSIP_MENU();
				}
			else 
				player->GetSession()->SendAreaTriggerMessage("您的金钱不足,请攒够后使用");
				player->CLOSE_GOSSIP_MENU();
			break;
        //返回
			case GOSSIP_ACTION_INFO_DEF + 15 :
			GossipHello_Item(player, _Item,targets);
			break;
	}
	break;
       }   


   }
  else if (player->isInFlight())
  {
      player->GetSession()->SendAreaTriggerMessage("银风齿轮无法在飞行中使用，请到达目的再使用");
  }
  else if (player->IsMounted())
  {
      player->GetSession()->SendAreaTriggerMessage("银风齿轮无法在坐骑中使用，请先下坐骑再使用");
  }
  else 
  {
      player->GetSession()->SendAreaTriggerMessage("银风齿轮无法在战斗中使用，请停止战斗再使用");
  }
    return true;
}

void AddSC_item_test()
{
	Script *newscript;

	newscript = new Script;
	newscript->Name="item_test";
	newscript->pItemUse = &GossipHello_Item;
	newscript->pGossipSelect_Item = &GossipSelect_Item; 

	m_scripts[nrscripts++] = newscript;
}